Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [index]: would dispatch back to the current handler URL [/index] again. Check your ViewResolver setup!
would dispatch back to the current handler URL [/index] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation
我升级SpringBoot到3.2之后报以上错误,因为我用的是freemark模板,所以freemark模板的文件后缀.ftl改成.ftlh就OK
SpringBoot3.2升级后Freemarker模板问题:解决Circularviewpath异常
升级SpringBoot3.2后遇到Circularviewpath异常,问题出在Freemarker模板文件名后缀。将.ftl改为.ftlh即可解决,可能源于默认视图名称生成导致的循环调用。
2万+

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



