mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 17:35:22 +00:00
Before this change if Layout dialect not available then the nested class is loaded and barfs because it depended on the layout dialect (in a @ConditionalOnClass annotation).
11 lines
252 B
Groovy
11 lines
252 B
Groovy
@Grab("org.thymeleaf:thymeleaf-spring3:2.0.16")
|
|
@Controller
|
|
class Example {
|
|
|
|
@RequestMapping("/")
|
|
public String helloWorld(Map<String,Object> model) {
|
|
model.putAll([title: "My Page", date: new Date(), message: "Hello World"])
|
|
return "home";
|
|
}
|
|
|
|
} |