Home > Back-end >  At 404 error test after the login interface
At 404 error test after the login interface

Time:10-03

this is my UserController


ServerResponse response class, only intercept variables, the method does not capture the


Here is my web. XML
 
<? The XML version="1.0" encoding="utf-8"?>
XMLNS="http://java.sun.com/xml/ns/javaee"
Xsi: schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
Id="WebApp_ID" version="2.5" & gt;

Archetype Created Web Application

CharacterEncodingFilter

Org. Springframework. Web. Filter. CharacterEncodingFilter

Encoding
Utf-8 & lt;/param - value>


ForceEncoding
True



CharacterEncodingFilter
/* & lt;/url - pattern>



. Org. Springframework. Web context. Request. RequestContextListener



ContextConfigLocation through applicationContext. XML web container and integrate the spring container
-->

Org. Springframework. Web. Context. ContextLoaderListener



ContextConfigLocation

The classpath: the applicationcontext.xml




Dispatcher

Org. Springframework. Web. Servlet. DispatcherServlet
1




Dispatcher
*. Do





The dispatcher - servlet. XML
 
<? The XML version="1.0" encoding="utf-8"?>
XMLNS: xsi="http://www.w3.org/2001/XMLSchema-instance" XMLNS: p="http://www.springframework.org/schema/p"
XMLNS: context="http://www.springframework.org/schema/context"
XMLNS: MVC="http://www.springframework.org/schema/mvc" XMLNS: aop="http://www.springframework.org/schema/aop"
Xsi: schemaLocation="HTTP://http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd "& gt;





Text/plain. Charset=utf-8 & lt;/value>
Text/HTML. Charset=utf-8 & lt;/value>




Application/json. Charset=utf-8 & lt;/value>














Project structure


I test the interface is the login interface, an error 404, will the XML configuration problems

CodePudding user response:

nullnullnullnullnullnullnullnullnullnullnullnull
  • Related