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";}
}