码迷,mamicode.com
首页 > Web开发 > 详细

hibernate

时间:2017-06-13 12:48:13      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:frame   xmlns   play   web.xml   路径   welcome   isp   name   work   

ssh中web.xml监听,路径的配置

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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_3_0.xsd"
version="3.0">
<display-name>StuinfoCRUDForSSH</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>
  <!-- spring 配置 -->
      <listener>  
        <listener-class>org.springframework.web.context.ContextLoaderListener </listener-class>
    </listener>  
    <!-- 当spring applicationContext.xml没有放在src目录下可以通过classpath进行配置 -->
    <context-param>
        <param-name>contextConfigLocation</param-name>
            <param-value>classpath:conf/spring/applicationContext.xml</param-value>
    </context-param>
    <!-- struts2 web配置 -->
   <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
         <!-- 以下参数是当struts.xml文件不再src目录下需要在web目录下配置 -->
         <init-param>  
        <param-name>config</param-name>  
        <param-value>struts-default.xml,struts-plugin.xml,conf/struts2/struts.xml</param-value>  
    </init-param>  
    </filter>

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
</web-app>

hibernate

标签:frame   xmlns   play   web.xml   路径   welcome   isp   name   work   

原文地址:http://www.cnblogs.com/zhynew/p/7000193.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!