Home > Back-end >  Ask a small problem about for SpringMVC, hope to have a big help me answer the following, thank you!
Ask a small problem about for SpringMVC, hope to have a big help me answer the following, thank you!

Time:01-17

I am in the process of learning, the springmvc, in the index. The JSP page wrote a hyperlink: & lt; A href="https://bbs.csdn.net/topics/${pageContext. Request. ContextPath}/login" & gt; Button & lt;/a>
The hyperlinks will send the request to the Controller, but it can't receive my Controller, there were 404 errors, both in the front Controller and view the parser configuration in good condition, but can't access the login. The JSP page, hope who can help me to solve! Thank you very much!!
 @ Controller 
Public class TestController {
@ RequestMapping ("/login ")
Public String the login () {
return "login";
}
}
  • Related