The World Before REST
Pretty much all services on the internet are exposed as RESTful services
Maintains all REST APIs on the net
Lab: Exercise 2: Explore REST APIs 4361_javarest_introduction.zip
Lab: Exercise 1: Tools 4361_javarest_introduction.zip
You can build Spring REST application using either SpringMVC REST APIs or JAX-RS APIs
Add the following dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jersey</artifactId>
</dependency>
• Add JerseyConfig.java
@Component
@ApplicationPath("/resources")
public class JerseyConfig extends ResourceConfig {
public JerseyConfig() {
register(CustomersResource.class);
register(OrdersResource.class);
}
}
Download PDF and Lab Zip files
}