diff options
author | 2017-04-05 14:50:48 +0300 | |
---|---|---|
committer | 2017-04-05 14:50:48 +0300 | |
commit | 0c2803b09b75b5aac26ad9d1e5061f77bf003d64 (patch) | |
tree | 4aaff710277d51e80483400a0ebcb47f0e21b7d4 /juick-www/src/main/java/com/juick/www/controllers/UserThread.java | |
parent | 8cad49e82db4847035a84f9de44878d9abe6299c (diff) |
juick-www: GetMapping and PostMapping
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/controllers/UserThread.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/UserThread.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/UserThread.java b/juick-www/src/main/java/com/juick/www/controllers/UserThread.java index 27788d9b..0aeac4c6 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/UserThread.java +++ b/juick-www/src/main/java/com/juick/www/controllers/UserThread.java @@ -30,9 +30,8 @@ import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; import javax.inject.Inject; import javax.servlet.ServletException; @@ -61,7 +60,7 @@ public class UserThread { @Inject PageTemplates templates; - @RequestMapping(value = "/{uname}/{mid}", method = RequestMethod.GET) + @GetMapping("/{uname}/{mid}") protected void doGetThread(HttpServletRequest request, HttpServletResponse response, @PathVariable String uname, @PathVariable int mid) throws ServletException, IOException { |