Add Groovy markup templating support to the MVC config

Issue: SPR-11998
This commit is contained in:
Sebastien Deleuze
2014-07-16 15:30:36 +02:00
committed by Rossen Stoyanchev
parent b18ed6b724
commit 80f4ea13c7
14 changed files with 200 additions and 14 deletions

View File

@@ -1 +1 @@
<html><body>${model.hello}</body></html>
<html><body>${hello}</body></html>

View File

@@ -6,7 +6,7 @@
<title>My First Web Application Using Spring MVC</title>
</head>
<body>
${model.hello}
${hello}
</body>
</html>

View File

@@ -1 +1 @@
<html><body>${model.hello}</body></html>
<html><body>${hello}</body></html>

View File

@@ -25,6 +25,7 @@
<mvc:tiles />
<mvc:freemarker />
<mvc:velocity />
<mvc:groovy-markup />
</mvc:view-resolvers>
<mvc:tiles check-refresh="true">
@@ -37,5 +38,7 @@
<mvc:velocity resource-loader-path="/org/springframework/web/servlet/view" />
<mvc:groovy-markup />
</beans>

View File

@@ -12,6 +12,7 @@
<mvc:tiles />
<mvc:freemarker prefix="freemarker-" suffix=".freemarker" view-names="my*,*Report" />
<mvc:velocity cache-views="false" />
<mvc:groovy-markup />
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver" />
<ref bean="customResolver" />
</mvc:view-resolvers>
@@ -30,5 +31,7 @@
<mvc:velocity resource-loader-path="/test" />
<mvc:groovy-markup resource-loader-path="/test" />
</beans>