SpringMVC freemarker 中 Could not resolve view with name 'XXX.ftl' in servlet with name 'SpringMVC'

原文鏈接:https://blog.csdn.net/wealth_123450/article/details/79697777

原因爲freemarker本身配置了templateLoaderPath而在viewResolver中不需要配置prefix,且路徑前綴必須配置在templateLoaderPath中。路徑配置錯誤導致以上錯誤信息。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章