还就没写java了,对错误也生疏了

错误如下

HTTP Status 500 – Internal Server Error

HTTP Status 500 – Internal Server Error

主要看这一行:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Cannot map handler 'regController' to URL path [/index.html]: There is already handler of type [class controller.loginController] mapped.
意思是:/index.html 在regController和loginController的requestMapping中重复出现了,系统不知道应该用哪个,即使代码都一样

所以删除一个就好啦

相关文章:

  • 2021-08-30
  • 2021-08-30
  • 2021-09-05
  • 2021-11-11
  • 2021-05-08
  • 2021-09-29
  • 2021-11-03
  • 2022-01-28
猜你喜欢
  • 2021-08-30
  • 2021-06-14
  • 2021-08-30
  • 2022-12-23
相关资源
相似解决方案