Create snippets for BAEL-2574 (#6344)

This commit is contained in:
Andrey Shcherbakov
2019-02-16 23:23:08 +01:00
committed by maibin
parent 91ac058838
commit 033bc8bd5a
7 changed files with 118 additions and 110 deletions

View File

@@ -9,5 +9,4 @@ public class App {
public static void main(String[] args) {
SpringApplication.run(App.class, args);
}
}

View File

@@ -23,10 +23,10 @@ public class Controller {
* @return
*/
@RequestMapping("/index")
public ModelAndView index(Map<String, Object> model) {
public ModelAndView thymeleafView(Map<String, Object> model) {
model.put("number", 1234);
model.put("message", "Hello from Spring MVC");
return new ModelAndView("/index");
return new ModelAndView("thymeleaf/index");
}
}