Skip to content

Commit

Permalink
Switch to @GetMapping in Starbucks Sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
odrotbohm committed Aug 16, 2024
1 parent d2f78ec commit dba65e8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
import org.springframework.hateoas.LinkRelation;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
Expand Down Expand Up @@ -70,7 +69,7 @@ class StoresController {
* @param pageable the pagination information
* @return
*/
@RequestMapping(value = "/", method = RequestMethod.GET)
@GetMapping("/")
String index(Model model, @RequestParam Optional<Point> location, @RequestParam Optional<Distance> distance,
Pageable pageable) {

Expand Down

0 comments on commit dba65e8

Please sign in to comment.