阅读背景:

简单的弹簧mvc输出程序有什么问题?

来源:互联网 

I have [web.xml]:

我有[web.xml]:

<web-app xmlns="https://java.sun.com/xml/ns/javaee"
          xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="https://java.sun.com/xml/ns/javaee 
          https://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
          version="2.5">    


    <servlet>
        <servlet-name>dispatcher</servlet-name>
        <servlet-class>
            org.springframework.web.servlet.DispatcherServlet
        </servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>



    <servlet-mapping>
        <servlet-name>dispatcher</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/dispatcher-servlet.xml</param-value>
    </context-param>

    <listener>
        <listener-class>
            org.springframework.web.context.ContextLoaderListener
        </listener-class>
    </listener>
</web-app>
<web-app xml



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: