Add Groovy markup templating support to the MVC config
Issue: SPR-11998
This commit is contained in:
committed by
Rossen Stoyanchev
parent
b18ed6b724
commit
80f4ea13c7
@@ -1 +1 @@
|
||||
<html><body>${model.hello}</body></html>
|
||||
<html><body>${hello}</body></html>
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>My First Web Application Using Spring MVC</title>
|
||||
</head>
|
||||
<body>
|
||||
${model.hello}
|
||||
${hello}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
html { body(hello) }
|
||||
@@ -1 +1 @@
|
||||
<html><body>${model.hello}</body></html>
|
||||
<html><body>${hello}</body></html>
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user