请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

测试一直出现404

测试的时候一直是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

0 回复 有任何疑惑可以回复我~
  • 提问者 鲜于东秀 #1
    我的接口是8088,特意比对过得
    回复 有任何疑惑可以回复我~ 2019-07-26 10:11:23
  • 提问者 鲜于东秀 #2
    非常感谢!
    回复 有任何疑惑可以回复我~ 2019-07-26 10:38:59
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号