赞
踩
idea Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Mon Apr 15 15:11:23 IRKT 2024 There was an unexpected error (type=Internal Server Error, status=500). Circular view path [login]: would dispatch back to the current handler URL [/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.) javax.servlet.ServletException: Circular view path [login]: would dispatch back to the current handler URL [/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)其他部分省略。。。。。。
controller已放在正确的位置,静态页面资源放在正确的位置,但是还是无法访问页面资源,与舍友模版一致,但是无法访问。
查看了多个csdn上的解答,最后试了一种方法:
“在启动类中配置@SpringBootApplication(scanBasePackages="controller"),注明你的controller层的位置”
但是在吃过晚餐后,删掉(scanBasePackages="controller"),又可以访问到资源了,不明白是如何解决的,或许是idea需要重启一下,才能访问到资源
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。