Further maven module restructure
This commit is contained in:
11
spring-cli/samples/ui.groovy
Normal file
11
spring-cli/samples/ui.groovy
Normal 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";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user