2022-01-06 21:28:05 +08:00
|
|
|
package app
|
|
|
|
|
2022-01-06 21:26:50 +08:00
|
|
|
@Grab("thymeleaf-spring6")
|
2022-01-06 21:28:05 +08:00
|
|
|
@Controller
|
|
|
|
class Example {
|
|
|
|
|
|
|
|
@RequestMapping("/")
|
|
|
|
public String helloWorld(Map<String,Object> model) {
|
|
|
|
model.putAll([title: "My Page", date: new Date(), message: "Hello World"])
|
|
|
|
return "home"
|
|
|
|
}
|
|
|
|
}
|