<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    方槍槍的java世界

    不要因為風(fēng)雨飄落就停止了你的腳步,真正的得失就在你的心中。 做喜歡做的事,不輕言放棄!

    02 整合spring3和mybatis進(jìn)行web開發(fā)之web_xml(使用了spring_security)

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi=" xmlns="http://java.sun.com/xml/ns/javaee  version="2.5">

     <display-name>Tianhe Framework Example Application</display-name>

     <!--  -->
     <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>
       classpath:META-INF/spring/global.common.xml  
       classpath:META-INF/spring/global.datasource.xml
       classpath:META-INF/spring/global.security.xml  
      </param-value>
     </context-param>

     <context-param>
      <param-name>webAppRootKey</param-name>
      <param-value>example</param-value>
     </context-param>

     <context-param>
      <param-name>log4jConfigLocation</param-name>
      <param-value>classpath:/log4j.properties</param-value>
     </context-param>

     <context-param>
      <param-name>log4jRefreshInterval</param-name>
      <param-value>60000</param-value>
     </context-param>

     <listener>
      <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
     </listener>

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

     <listener>
      <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
     </listener>

     <filter>
      <filter-name>characterEncodingFilter</filter-name>
      <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
      <init-param>
       <param-name>encoding</param-name>
       <param-value>UTF-8</param-value>
      </init-param>
      <init-param>
       <param-name>forceEncoding</param-name>
       <param-value>true</param-value>
      </init-param>
     </filter>
     <filter-mapping>
      <filter-name>characterEncodingFilter</filter-name>
      <url-pattern>/*</url-pattern>
     </filter-mapping>

     <filter>
      <filter-name>CommonWebFilter</filter-name>
      <filter-class>com.tianhe.frm.web.CommonWebFilter</filter-class>
      <init-param>
       <param-name>interceptors</param-name>
       <param-value>com.tianhe.frm.web.WebContextFilterInterceptor</param-value>
      </init-param>
     </filter>
     <filter-mapping>
      <filter-name>CommonWebFilter</filter-name>
      <url-pattern>/*</url-pattern>
     </filter-mapping>

     <filter>
      <filter-name>securityFilter</filter-name>
      <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
      <init-param>
       <param-name>targetBeanName</param-name>
       <param-value>springSecurityFilterChain</param-value>
      </init-param>
     </filter>
     <filter-mapping>
      <filter-name>securityFilter</filter-name>
      <url-pattern>/*</url-pattern>
     </filter-mapping>

     <servlet>
      <servlet-name>dispatcher</servlet-name>
      <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
      <init-param>
       <param-name>contextConfigLocation</param-name>
       <param-value>/WEB-INF/dispatcher-servlet.xml</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
     </servlet>
     <servlet-mapping>
      <servlet-name>dispatcher</servlet-name>
      <url-pattern>*.do</url-pattern>
     </servlet-mapping>

     <!--
      <servlet> <servlet-name>remoting</servlet-name>
      <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
      <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping>
      <servlet-name>remoting</servlet-name>
      <url-pattern>/httpinvoker/*</url-pattern> </servlet-mapping>
      <servlet-mapping> <servlet-name>remoting</servlet-name>
      <url-pattern>/burlap/*</url-pattern> </servlet-mapping>
      <servlet-mapping> <servlet-name>remoting</servlet-name>
      <url-pattern>/hessian/*</url-pattern> </servlet-mapping>
     -->

     <mime-mapping>
      <extension>doc</extension>
      <mime-type>application/msword</mime-type>
     </mime-mapping>
     <mime-mapping>
      <extension>xls</extension>
      <mime-type>application/vnd.ms-excel</mime-type>
     </mime-mapping>
     <mime-mapping>
      <extension>ppt</extension>
      <mime-type>application/vnd.ms-powerpoint</mime-type>
     </mime-mapping>
     <mime-mapping>
      <extension>zip</extension>
      <mime-type>application/zip</mime-type>
     </mime-mapping>
     <mime-mapping>
      <extension>rar</extension>
      <mime-type>application/rar</mime-type>
     </mime-mapping>
     <mime-mapping>
      <extension>pdf</extension>
      <mime-type>application/pdf</mime-type>
     </mime-mapping>
     <mime-mapping>
      <extension>txt</extension>
      <mime-type>application/txt</mime-type>
     </mime-mapping>
     <mime-mapping>
      <extension>chm</extension>
      <mime-type>application/mshelp</mime-type>
     </mime-mapping>
     <mime-mapping>
      <extension>mp3</extension>
      <mime-type>audio/x-mpeg</mime-type>
     </mime-mapping>

     <error-page>
      <error-code>400</error-code>
      <location>/error.jsp</location>
     </error-page>
     <error-page>
      <error-code>401</error-code>
      <location>/error.jsp</location>
     </error-page>
     <error-page>
      <error-code>402</error-code>
      <location>/error.jsp</location>
     </error-page>
     <error-page>
      <error-code>403</error-code>
      <location>/error.jsp</location>
     </error-page>
     <error-page>
      <error-code>404</error-code>
      <location>/error.jsp</location>
     </error-page>
     <error-page>
      <error-code>405</error-code>
      <location>/error.jsp</location>
     </error-page>
     <error-page>
      <error-code>406</error-code>
      <location>/error.jsp</location>
     </error-page>
     <error-page>
      <error-code>407</error-code>
      <location>/error.jsp</location>
     </error-page>
     <error-page>
      <error-code>413</error-code>
      <location>/error.jsp</location>
     </error-page>
     <error-page>
      <error-code>414</error-code>
      <location>/error.jsp</location>
     </error-page>
     <error-page>
      <error-code>500</error-code>
      <location>/error.jsp</location>
     </error-page>
     <error-page>
      <error-type>javax.lang.Exception</error-type>
      <location>/error/jsp/errorException.jsp</location>
     </error-page>

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

     <session-config>
      <session-timeout>10</session-timeout>
     </session-config>

     <!--
      <jsp-config> <jsp-property-group> <url-pattern>*.jsp</url-pattern>
      <el-ignored>true</el-ignored> </jsp-property-group> </jsp-config>
     -->

    </web-app>

    posted on 2012-07-07 14:56 做強大的自己 閱讀(781) 評論(0)  編輯  收藏 所屬分類: Spring

    主站蜘蛛池模板: 97热久久免费频精品99| 亚洲成人影院在线观看| 国产精品亚洲lv粉色| 亚洲三区在线观看无套内射| 69视频在线观看免费| 67pao强力打造国产免费| 亚洲国产精品美女久久久久| 在线a亚洲v天堂网2019无码| 国产产在线精品亚洲AAVV| 国产国拍亚洲精品mv在线观看 | 亚洲av无码成人精品国产| 全亚洲最新黄色特级网站| 91福利免费视频| 免费的黄色网页在线免费观看| 亚洲国产成人久久精品动漫 | 最近免费中文字幕大全免费版视频| 亚洲精品亚洲人成在线| 亚洲Av综合色区无码专区桃色| 最近2019中文字幕免费看最新| 手机看片国产免费永久| 亚洲国产最大av| 亚洲AV无码乱码在线观看富二代| 麻豆国产VA免费精品高清在线| 免费观看在线禁片| 色屁屁在线观看视频免费| 亚洲天天在线日亚洲洲精| 亚洲精品无码久久不卡| 免费观看黄网站在线播放| 免费看男人j放进女人j免费看| 国产成人综合亚洲| 亚洲制服在线观看| 无码欧精品亚洲日韩一区| 亚洲国产精品毛片av不卡在线| 中文字幕无码免费久久99| 久久大香香蕉国产免费网站| 人成免费在线视频| 亚洲Av永久无码精品一区二区| 亚洲国产精品专区| 亚洲丝袜美腿视频| 亚洲第一精品在线视频| 国产午夜亚洲精品午夜鲁丝片|