1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | package texas.sbq.travel; import java.text.DateFormat; import java.util.Date; import java.util.Locale; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; /** * Handles requests for the application home page. */ @Controller public class HomeController { private static final Logger logger = LoggerFactory.getLogger(HomeController.class); @RequestMapping("/") public String index() { return "index"; } @RequestMapping(value = "/kakaologin", method = RequestMethod.GET) public String kakaologin(Locale locale, Model model) { logger.info("kakaologin! The client locale is {}.", locale); return "kakaologin"; } @RequestMapping(value = "/fblogin", method = RequestMethod.GET) public String fblogin(Locale locale, Model model) { logger.info("fblogin! The client locale is {}.", locale); return "fblogin"; } @RequestMapping(value = "/googlelogin", method = RequestMethod.GET) public String googlelogin(Locale locale, Model model) { logger.info("googlelogin! The client locale is {}.", locale); return "googlelogin"; } @RequestMapping(value = "/naverlogin", method = RequestMethod.GET) public String naverlogin(Locale locale, Model model) { logger.info("naverlogin! The client locale is {}.", locale); return "naverlogin"; } @RequestMapping(value = "/payment", method = RequestMethod.GET) public String kakaopay(Locale locale, Model model) { logger.info("move to kakaopay", locale); return "kakaopay"; } } | cs |
'프로젝트 > 스프링 & 타임리프' 카테고리의 다른 글
40. 질병관리 :: 관리자 등록 프로세스 HTML -> Java -> csv (0) | 2020.04.29 |
---|---|
40. 질병관리 :: 관리자 등록 템플릿 register.html (0) | 2020.04.28 |
40. 질병관리 :: 홈 화면 index.html 템플릿 (0) | 2020.04.28 |
40. 질병관리 :: 최초 index.html ※ 템플릿 사용하지 않고 쉽게 시작하기 (0) | 2020.04.17 |
37. 여행 :: 마이바티스 설정 MyBatisConfig.java (0) | 2020.03.24 |