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

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

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

    方槍槍的java世界

    不要因?yàn)轱L(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 做強(qiáng)大的自己 閱讀(774) 評論(0)  編輯  收藏 所屬分類: Spring

    主站蜘蛛池模板: 国产AV旡码专区亚洲AV苍井空 | 男女啪啪免费体验区| 美女裸身网站免费看免费网站| 亚洲视频精品在线| 国产免费AV片在线观看 | 亚欧在线精品免费观看一区| 久久av无码专区亚洲av桃花岛| 无码日韩精品一区二区三区免费 | 亚洲乱码中文论理电影| 曰曰鲁夜夜免费播放视频| 91亚洲视频在线观看| 美女视频黄的全免费视频网站| 久久精品国产亚洲αv忘忧草| 免费下载成人电影| 亚洲熟妇丰满xxxxx| 日韩在线免费电影| 二级毛片免费观看全程| 亚洲综合日韩久久成人AV| 日韩免费观看一区| 亚洲va在线va天堂va手机| 永久免费视频v片www| 男男gay做爽爽的视频免费| 国产亚洲精品无码专区| 久久精品电影免费动漫| 亚洲五月综合网色九月色| 精品国产免费观看一区| 国产特黄特色的大片观看免费视频 | 最近最新高清免费中文字幕| 亚洲欧洲国产经精品香蕉网| 日韩精品成人无码专区免费| 老司机福利在线免费观看| 亚洲乱码中文字幕久久孕妇黑人| 777爽死你无码免费看一二区| 亚洲人配人种jizz| heyzo亚洲精品日韩| 久久精品免费观看| 亚洲色一区二区三区四区| 国产AV无码专区亚洲AV手机麻豆| 99久久久国产精品免费牛牛| 亚洲av无码成人影院一区| 亚洲精品国偷自产在线|