From 0adca43706e6f16a2bce20f69bdb4ec1715689b5 Mon Sep 17 00:00:00 2001 From: Slavisa Baeldung Date: Fri, 22 Apr 2016 11:59:51 +0200 Subject: [PATCH] spring-hateoas - changing the mapping --- spring-security-rest/README.md | 1 + spring-security-rest/pom.xml | 4 +++- .../java/org/baeldung/web/controller/CustomerController.java | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-security-rest/README.md b/spring-security-rest/README.md index 6261fbe83d..290cd491e0 100644 --- a/spring-security-rest/README.md +++ b/spring-security-rest/README.md @@ -7,3 +7,4 @@ - [Spring REST Service Security](http://www.baeldung.com/2011/10/31/securing-a-restful-web-service-with-spring-security-3-1-part-3/) - [Setting Up Swagger 2 with a Spring REST API](http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api) - [Custom Error Message Handling for REST API](http://www.baeldung.com/global-error-handler-in-a-spring-rest-api) +- [An Intro to Spring HATEOAS](http://www.baeldung.com/spring-hateoas-tutorial) diff --git a/spring-security-rest/pom.xml b/spring-security-rest/pom.xml index 9e2620c098..2944f53337 100644 --- a/spring-security-rest/pom.xml +++ b/spring-security-rest/pom.xml @@ -82,7 +82,7 @@ org.springframework.hateoas spring-hateoas - 0.19.0.RELEASE + ${org.springframework.hateoas.version} @@ -165,6 +165,7 @@ org.springframework.security spring-security-test ${org.springframework.security.version} + test @@ -292,6 +293,7 @@ 4.2.5.RELEASE 4.0.4.RELEASE + 0.19.0.RELEASE 4.3.11.Final diff --git a/spring-security-rest/src/main/java/org/baeldung/web/controller/CustomerController.java b/spring-security-rest/src/main/java/org/baeldung/web/controller/CustomerController.java index 0582c94498..532e6b4d3a 100644 --- a/spring-security-rest/src/main/java/org/baeldung/web/controller/CustomerController.java +++ b/spring-security-rest/src/main/java/org/baeldung/web/controller/CustomerController.java @@ -17,7 +17,7 @@ import static org.springframework.hateoas.mvc.ControllerLinkBuilder.linkTo; import static org.springframework.hateoas.mvc.ControllerLinkBuilder.methodOn; @RestController -@RequestMapping(value = "/customer") +@RequestMapping(value = "/customers") public class CustomerController { @Autowired private CustomerService customerService;