Make sure ThymeleafAutoConfiguration works if imported directly

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).
This commit is contained in:
Dave Syer
2013-05-31 16:16:19 +01:00
parent f12b3fbcd7
commit 969c7d6fa1
6 changed files with 73 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
@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";
}
}