1.报错 Circular view path
- javax.servlet.ServletException: Circular view path [login]: would dispatch back to the current handler URL [/preregister/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
原因缺少配置:freemarker suffix: .html,添加即可
spring:
freemarker:
cache: false
charset: UTF-8
check-template-location: true
suffix: .html
template-loader-path: classpath:/templates
request-context-attribute: request