2020-03-27 22:33:04.339 ERROR 16832 — [nio-9000-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [login]: would dispatch back to the current handler URL [/view/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause
就是一个简单的基于maven、springboot做个跳转到登录页面,频频出错。
最后终于找到了原因,记录下
解决方案:
将springboot和thymeleaf(template)的版本修改为一致即可。