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/SignUp.java | |
parent | 8cad49e82db4847035a84f9de44878d9abe6299c (diff) |
juick-www: GetMapping and PostMapping
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/controllers/SignUp.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/SignUp.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/SignUp.java b/juick-www/src/main/java/com/juick/www/controllers/SignUp.java index 4c20e513..d07c3227 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/SignUp.java +++ b/juick-www/src/main/java/com/juick/www/controllers/SignUp.java @@ -27,8 +27,8 @@ import com.juick.www.Utils; import com.juick.www.WebApp; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; -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.PostMapping; import javax.inject.Inject; import javax.servlet.http.Cookie; @@ -52,7 +52,7 @@ public class SignUp { MessagesService messagesService; - @RequestMapping(value = "/signup", method = RequestMethod.GET) + @GetMapping("/signup") protected String doGet(HttpServletRequest request, HttpServletResponse response, ModelMap model) { com.juick.User visitor = UserUtils.getCurrentUser(); @@ -91,7 +91,7 @@ public class SignUp { return "views/signup"; } - @RequestMapping(value = "/signup", method = RequestMethod.POST) + @PostMapping("/signup") protected String doPost(HttpServletRequest request, HttpServletResponse response) { com.juick.User visitor = UserUtils.getCurrentUser(); int uid = 0; |