@Token(SET) @RequestMapping("/index") public DoxModelAndView index(HelloForm form) { LOG.info("ログ出力テスト 時間={}", getAccessDate()); LOG.info("user = {}", accessUser); accessUser.setNameMei("hatimiti"); return view("/hello/hello.html", form); }
// @Token(CHECK_AND_SET) @DoValidation( v = {Validate.class}, to = "/hello/hello.html") @RequestMapping("/input") public DoxModelAndView input(HelloForm form) { this.helloService.search(form); LOG.info("ログ出力テスト2, {}", form.getResults()); addMessage(new AppMessage(INFO, "hello2", prop("val"), prop("samplemes"))); return view("/hello/hello.html", form); }
@RequestMapping(value = "/upload", method = RequestMethod.POST) public DoxModelAndView upload(HelloForm form) { try (OutputStream stream = new BufferedOutputStream( new FileOutputStream( Paths.get("//LS-XHLE38/share/var/", form.getFileName()).toFile()))) { stream.write(form.getFile().getBytes()); addMessage(new AppMessage(INFO, "completes.upload")); } catch (Exception e) { LOG.info("message = {}, stacktrace = {}", e.getMessage(), e.getStackTrace()); } return view("/hello/hello.html", form); }