问题描述:找不到controller

Did not find handler method for [/login.action] WARN [http-

bio-8080-exec-7] - No mapping found for HTTP request with URI 

[/SpringMVC_Mybatis2/login.action] in DispatcherServlet with name 'springmvc'DEBUG 

[http-bio-8080-exec-7] 


如下所示错误:


SpringMVC错误②


问题分析:首先检查SpringMVC配置文件,看看有没有对controller进行扫描。我这一步 

没问题,后来发现在controller中少加了一个注解,加上成功解决。

如下图:

SpringMVC错误②



相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-06-29
  • 2021-12-03
  • 2021-07-04
  • 2021-10-04
  • 2022-12-23
猜你喜欢
  • 2021-07-25
  • 2021-11-05
  • 2021-12-31
  • 2021-09-30
  • 2022-01-01
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案