i18n1 Spring 다국어 적용 1. servlet-context.xml 2. Controller 설정 private org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(MainController.class); @Autowired SessionLocaleResolver localeResolver; @Autowired MessageSource messageSource; @RequestMapping(value = "/i18n.do", method = RequestMethod.GET) public String i18n(Locale locale, HttpServletRequest request, Model model) { // RequestMapingHandler로 부터 받은 Locale.. 2020. 8. 11. 이전 1 다음