Home > Back-end >  Springboot program, the login method problem description of the login page
Springboot program, the login method problem description of the login page

Time:09-20

Write a blog, the problems encountered in the login page, which help to look at the great god, grateful!

Code 1: state space method in front is normal English
& lt; The form method="post" action="#" th: action="@ {/admin/login}" & gt;

Code 2: the method is in front of the whole Angle in Chinese space
& lt; The form method="post" action="#" th: action="@ {/admin/login}" & gt;

With code, you can enter the login page, just enter the user name and password, click "login" button, enter the error page
To view the page source code (error) :
& lt; Div>
& lt; ! -
Failed the Request URL: http://localhost:8080/admin/login
The Exception message: the Request method 'POST' not supported

Org. Springframework. Web. Servlet. MVC. Method. RequestMappingInfoHandlerMapping. HandleNoMatch (RequestMappingInfoHandlerMapping. Java: 207)
Org. Springframework. Web. Servlet. Handler. AbstractHandlerMethodMapping. LookupHandlerMethod (AbstractHandlerMethodMapping. Java: 374)
Org. Springframework. Web. Servlet. Handler. AbstractHandlerMethodMapping. GetHandlerInternal (AbstractHandlerMethodMapping. Java: 314)
Org. Springframework. Web. Servlet. Handler. AbstractHandlerMethodMapping. GetHandlerInternal (AbstractHandlerMethodMapping. Java: 61)
Org. Springframework. Web. Servlet. Handler. AbstractHandlerMapping. GetHandler (AbstractHandlerMapping. Java: 352)
Org. Springframework. Web. Servlet. DispatcherServlet. GetHandler (DispatcherServlet. Java: 1160)
Org. Springframework. Web. Servlet. DispatcherServlet. DoDispatch (DispatcherServlet. Java: 940)
Org. Springframework. Web. Servlet. DispatcherServlet. DoService (DispatcherServlet. Java: 901)
Org. Springframework. Web. Servlet. FrameworkServlet. The processRequest (FrameworkServlet. Java: 970)
Org. Springframework. Web. Servlet. FrameworkServlet. DoPost (FrameworkServlet. Java: 872)
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 661)
Org. Springframework. Web. Servlet. FrameworkServlet. Service (846) FrameworkServlet. Java:
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 742)
Org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 231)
Org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
Org, apache tomcat, websocket server. WsFilter. DoFilter (WsFilter. Java: 52)
Org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193)
Org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
Org. Springframework. Web. Filter. RequestContextFilter. DoFilterInternal (RequestContextFilter. Java: 99)
Org. Springframework. Web. Filter. OncePerRequestFilter. DoFilter (OncePerRequestFilter. Java: 107)
Org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193)
Org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
Org. Springframework. Web. Filter. HttpPutFormContentFilter. DoFilterInternal (HttpPutFormContentFilter. Java: 108)
Org. Springframework. Web. Filter. OncePerRequestFilter. DoFilter (OncePerRequestFilter. Java: 107)
Org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193)
Org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
Org. Springframework. Web. Filter. HiddenHttpMethodFilter. DoFilterInternal (HiddenHttpMethodFilter. Java: 81)
Org. Springframework. Web. Filter. OncePerRequestFilter. DoFilter (OncePerRequestFilter. Java: 107)
Org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193)
Org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
Org. Springframework. Web. Filter. CharacterEncodingFilter. DoFilterInternal (CharacterEncodingFilter. Java: 197)
Org. Springframework. Web. Filter. OncePerRequestFilter. DoFilter (OncePerRequestFilter. Java: 107)
Org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193)
Org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
Org. Apache. Catalina. Core. StandardWrapperValve. Invoke (StandardWrapperValve. Java: 198)
Org. Apache. Catalina. Core. StandardContextValve. Invoke (StandardContextValve. Java: 96)
Org. Apache. Catalina. The authenticator. AuthenticatorBase. Invoke (AuthenticatorBase. Java: 478)
Org. Apache. Catalina. Core. StandardHostValve. Invoke (StandardHostValve. Java: 140)
Org. Apache. Catalina. Valves. ErrorReportValve. Invoke (ErrorReportValve. Java: 80)
Org. Apache. Catalina. Core. StandardEngineValve. Invoke (StandardEngineValve. Java: 87)
Org. Apache. Catalina. Connector. CoyoteAdapter. Service (342) CoyoteAdapter. Java:
Org. Apache. Coyote. Http11. Http11Processor. Service (799) Http11Processor. Java:
Org. Apache. Coyote. AbstractProcessorLight. Process (66) AbstractProcessorLight. Java:
Org. Apache. Coyote. AbstractProtocol $ConnectionHandler. Process (868) AbstractProtocol. Java:
Org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun NioEndpoint. Java: (1457)
Org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase. Java: 49)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related