jreijn / spring-comparing-template-engines

Demo project to show different Java templating engines in combination with Spring MVC
Apache License 2.0
422 stars 116 forks source link

Issue #8: Added context path to all templates #14

Closed Vest closed 8 years ago

Vest commented 8 years ago

Hello @jreijn,

Here is the merge request that should fix the issue #8. Please verify it before the merge. Now all links such as one below will work. http://localhost:8080/spring-comparing-template-engines/freemarker

Kind regards, Vest

Vest commented 8 years ago

I use different techniques there. Some of them are related to templates' features, others come from ViewResolvers. After that, I think this repo will be a good (I hope) example, how to handle contextPaths in different engines :)

By the way, if you do not like the caching, I'd recommend to remove it for all templates, because (as I wrote in the commit text) some of viewResolvers cached the response. Maybe that is why your test results look different for some people.