Simple JAX-RS via SpringBoot

Preview:

Citation preview

Spring Boot

What is Spring Boot?• Spring Boot makes it easy to create stand-

alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.

Features• Create stand-alone Spring applications

• Embeded Tomcat, Jetty or Undertow directly (you don’t need to deploy WAR files or create one)

• Based from 'starter' POMs to simplify your Maven configuration

• Automatically configure Spring

• Absolutely no code generation and no requirement for XML configurations. Isn’t that great?!

Simple JAX-RS service

• Spring Boot along with @EnableAutoConfiguration/@SpringBootApplication does the rest. It detects the presence of Jetty in the classpath, comes to a valid conclusion that our intention is to run web application and complement the Spring context with the necessary pieces

<org.eclipse.jetty.version>9.3.8.v20160314</org.eclipse.jetty.version>

References:

• javacodegeeks.com

• https://spring.io/