Controller


Controller

@Controller public class HomeController { private static final Logget Logger = LoggerFactory.getLogger(HomeController.class); @RequestMapping(value = "/home", method = RequestMethod.GET) public String home(Locale locale, Model model) { Logger.info("Welcome {}.", locale); // Business Logic Date date = new Date(); DateFormat = dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale); String formattedDate = dateFormat.format(date); // BL의 결과를 Model에 저장 model.addAttribut...



원문링크 : Controller