测试一直出现404
来源:6-9 用户模块所有功能自测试
鲜于东秀
2019-07-25
测试的时候一直是404界面啊,欢迎界面可以进去,但是测试登录就不行了,欢迎的路径是http://localhost:8088/mmall_war_exploded/
测试界面是
web.xml也配置了servlet`
contextConfigLocation
classpath:applicationContext.xml
dispatcher
org.springframework.web.servlet.DispatcherServlet
1
dispatcher
*.do
`
dispatcher-servlet.xml里面也配置了注解`<context:component-scan base-package=“com.mmall” annotation-config=“true”/>
<mvc:annotation-driven>
<mvc:message-converters>
<bean class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/plain;charset=UTF-8</value>
<value>text/html;charset=UTF-8</value>
</list>
</property>
</bean>
<bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>application/json;charset=UTF-8</value>
</list>
</property>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>`
为啥还是一直404啊
写回答
1回答
-
同学,如果欢迎页面是http://localhost:8088/mmall_war_exploded/,那么测试接口也要是http://localhost:8088/mmall_war_exploded/user/login.do
022019-07-26
相似问题