异常
Circular view path [/login.html]: would dispatch back to the current handler URL [/login.html] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
解决
web.xml 里面加
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
Circular view path [/login.html]: would dispatch back to the current handler URL [/login.html] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
解决
web.xml 里面加
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
解决Circularviewpath异常
本文介绍了一种解决Spring MVC中Circularviewpath异常的方法,通过在web.xml文件中配置默认的servlet-mapping来避免因视图解析器设置不当导致的问题。
601

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



