当前位置: 代码迷 >> 综合 >> SpringMVC注解:无法访问,404(No mapping found for HTTP request with URI in DispatcherServlet with name
  详细解决方案

SpringMVC注解:无法访问,404(No mapping found for HTTP request with URI in DispatcherServlet with name

热度:29   发布时间:2024-02-06 13:46:18.0

SpringMVC注解:无法访问,404(No mapping found for HTTP request with URI [/ssz/1ogin.do] in DispatcherServlet with name ’ springMVC ')

网上报这类错的,正二八经的解答有了,自述一下,顺便看看有没有和我志同道合的有(s)缘(b)人
在这里插入图片描述

controller,注解,写错了

@Controller
public class LoginController {@RequestMapping("login.do")//←←←←←←←←←←←这里←←←←←←←←←←←←←public String login(){System.out.println("controller");return "index";}
}
  相关解决方案