java.lang.IllegalStateException,500error

500error Caused by: java.lang.IllegalStateException: Cannot map handler 'tchlogincontroller' to URL path [/login.html]: There is already handler of type [class ***.controller.Logincontroller] mapped.

啊啊啊啊,这个问题是昨天晚上遇到的,今天下午终于把它解决了,嘤。。。原因就是我之前有过一个教师类的用户登录,我之后想换成所有用户的登录就把原来的controller删了,结果target文件里忘记删了,所以映射了两个相同的地址就出了错。按道理IDEA会自动更新target文件的,嘤。。。

解决方法:删了target文件重新运行,还不行的话再把out文件和target文件都删了重新运行。

猜你喜欢

转载自blog.csdn.net/floraruo/article/details/80808777
今日推荐