Transcript
Page 1: Simple JAX-RS via SpringBoot

Spring Boot

Page 2: Simple JAX-RS via SpringBoot

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.

Page 3: Simple JAX-RS via SpringBoot

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?!

Page 4: Simple JAX-RS via SpringBoot

Simple JAX-RS service

Page 5: Simple JAX-RS via SpringBoot
Page 6: Simple JAX-RS via SpringBoot
Page 7: Simple JAX-RS via SpringBoot
Page 8: Simple JAX-RS via SpringBoot
Page 9: Simple JAX-RS via SpringBoot

• 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>

Page 10: Simple JAX-RS via SpringBoot

References:

• javacodegeeks.com

• https://spring.io/