Skip to content

Commit 0adca43

Browse files
spring-hateoas - changing the mapping
1 parent 4f410a7 commit 0adca43

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎spring-security-rest/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
- [Spring REST Service Security](http://www.baeldung.com/2011/10/31/securing-a-restful-web-service-with-spring-security-3-1-part-3/)
88
- [Setting Up Swagger 2 with a Spring REST API](http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api)
99
- [Custom Error Message Handling for REST API](http://www.baeldung.com/global-error-handler-in-a-spring-rest-api)
10+
- [An Intro to Spring HATEOAS](http://www.baeldung.com/spring-hateoas-tutorial)

‎spring-security-rest/pom.xml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<dependency>
8383
<groupId>org.springframework.hateoas</groupId>
8484
<artifactId>spring-hateoas</artifactId>
85-
<version>0.19.0.RELEASE</version>
85+
<version>${org.springframework.hateoas.version}</version>
8686
</dependency>
8787

8888
<!-- web -->
@@ -165,6 +165,7 @@
165165
<groupId>org.springframework.security</groupId>
166166
<artifactId>spring-security-test</artifactId>
167167
<version>${org.springframework.security.version}</version>
168+
<scope>test</scope>
168169
</dependency>
169170

170171

@@ -292,6 +293,7 @@
292293
<!-- Spring -->
293294
<org.springframework.version>4.2.5.RELEASE</org.springframework.version>
294295
<org.springframework.security.version>4.0.4.RELEASE</org.springframework.security.version>
296+
<org.springframework.hateoas.version>0.19.0.RELEASE</org.springframework.hateoas.version>
295297

296298
<!-- persistence -->
297299
<hibernate.version>4.3.11.Final</hibernate.version>

‎spring-security-rest/src/main/java/org/baeldung/web/controller/CustomerController.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import static org.springframework.hateoas.mvc.ControllerLinkBuilder.methodOn;
1818

1919
@RestController
20-
@RequestMapping(value = "/customer")
20+
@RequestMapping(value = "/customers")
2121
public class CustomerController {
2222
@Autowired
2323
private CustomerService customerService;

0 commit comments

Comments
 (0)