原因为freemarker本身配置了templateLoaderPath而在viewResolver中不需要配置prefix,且路径前缀必须配置在templateLoaderPath中。路径配置错误导致以上错误信息。
SpringMVC freemarker 中 Could not resolve view with name 'XXX.ftl' in servlet with name 'SpringMVC'
最新推荐文章于 2023-04-10 21:24:17 发布
本文解析了Freemarker模板引擎的配置误区,指出templateLoaderPath的重要性,并解释了为何在viewResolver中无需重复配置路径前缀。
1万+

被折叠的 条评论
为什么被折叠?



