错误解决:访问登录界面进不去

这篇博客主要记录了在使用Spring MVC时遇到的'Circular view path [login]'错误,该错误导致登录界面无法正常访问。错误的根本原因在于视图解析器的配置问题,由于未指定视图路径,系统在尝试重定向时陷入了循环。解决方案是更新视图解析器的配置,确保它能够正确找到位于'login'文件夹下的.FTL文件。修复这个问题后,登录页面的访问恢复正常。
摘要由CSDN通过智能技术生成

问题报错:在这里插入图片描述
2019-04-26 09:56:31.458 ERROR 5304 — [nio-8088-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 [/jp/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

javax.servlet.ServletException: Circular view path [login]: would dispatch back to the current handler URL [/jp/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
at org.springframework.web.servlet.view.InternalResourceView.prepareForRendering(InternalResourceView.java:205) ~[spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE]

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值