web.xml给我一份可好?web.xml给我一份可好?web.xml给我一份可好?

来源:1-3 实体和映射的创建

qq_边走边爱_03213237

2016-12-09 15:03

web.xml给我一份可好?

写回答 关注

1回答

  • rivers2
    2016-12-09 15:05:51
    已采纳

    <?xml version="1.0" encoding="UTF-8"?>

    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">

     <display-name>ssh_member</display-name>

     <welcome-file-list>

       <welcome-file>index.html</welcome-file>

       <welcome-file>index.htm</welcome-file>

       <welcome-file>index.jsp</welcome-file>

       <welcome-file>default.html</welcome-file>

       <welcome-file>default.htm</welcome-file>

       <welcome-file>default.jsp</welcome-file>

     </welcome-file-list>

     <filter>

       <filter-name>OpenSessionInViewFilter</filter-name>

       <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>

     </filter>

     <filter-mapping>

       <filter-name>OpenSessionInViewFilter</filter-name>

       <url-pattern>*.action</url-pattern>

     </filter-mapping>

     <listener>

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

     </listener>

     <context-param>

       <param-name>contextConfigLocation</param-name>

       <param-value>classpath:applicationContext.xml</param-value>

     </context-param>

     <filter>

       <filter-name>struts</filter-name>

       <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>

     </filter>

     <filter-mapping>

       <filter-name>struts</filter-name>

       <url-pattern>/*</url-pattern>

     </filter-mapping>

    </web-app>

基于SSH实现员工管理系统之案例实现篇

SSH框架整合案例之实现篇,手把手带你实现员工管理系统

50212 学习 · 323 问题

查看课程

相似问题