Skip to content

Commit dba65e8

Browse files
committed
Switch to @GetMapping in Starbucks Sample.
1 parent d2f78ec commit dba65e8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rest/starbucks/src/main/java/example/springdata/rest/stores/web/StoresController.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
import org.springframework.hateoas.LinkRelation;
3535
import org.springframework.stereotype.Controller;
3636
import org.springframework.ui.Model;
37-
import org.springframework.web.bind.annotation.RequestMapping;
38-
import org.springframework.web.bind.annotation.RequestMethod;
37+
import org.springframework.web.bind.annotation.GetMapping;
3938
import org.springframework.web.bind.annotation.RequestParam;
4039

4140
/**
@@ -70,7 +69,7 @@ class StoresController {
7069
* @param pageable the pagination information
7170
* @return
7271
*/
73-
@RequestMapping(value = "/", method = RequestMethod.GET)
72+
@GetMapping("/")
7473
String index(Model model, @RequestParam Optional<Point> location, @RequestParam Optional<Distance> distance,
7574
Pageable pageable) {
7675

0 commit comments

Comments
 (0)