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

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

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

    posts - 64,  comments - 9,  trackbacks - 0

    web.xml配置

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
         http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <filter>
            <filter-name>struts-cleanup</filter-name>
            <filter-class>
                 org.apache.struts2.dispatcher.ActionContextCleanUp
            </filter-class>
        </filter>
        <filter-mapping>
            <filter-name>struts-cleanup</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
        <filter>
            <filter-name>struts2</filter-name>
            <filter-class>
                 org.apache.struts2.dispatcher.FilterDispatcher
            </filter-class>
        </filter>

        <filter-mapping>
            <filter-name>struts2</filter-name>
            <url-pattern>/*</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,classpath:applicationContext-extend.xml
            </param-value>
        </context-param>
        <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
    </web-app>

     

     

    struts.properties

    1 struts.objectFactory=spring
    2 struts.objectFactory.spring.autoWire=auto

     

     

    applicationContext.xml

    01      <!-- 配置ibatis -->
    02     <bean id="sqlMapClient"
    03         class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
    04         <property name="configLocation">
    05             <value>classpath:SqlMapConfig.xml</value>
    06         </property>
    07         <property name="dataSource">
    08             <ref bean="dataSource" />
    09         </property>
    10     </bean>
    1      <!-- 配置DAO -->
    2     <bean id="AdminDAO" class="cn.edu.hit.mis.dao.AdminDAOImpl">
    3         <property name="sqlMapClient">
    4             <ref bean="sqlMapClient" />
    5         </property>
    6     </bean>
    其他地方都一樣
    posted on 2009-10-13 17:51 super_nini 閱讀(738) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導(dǎo)航:
    博客園   IT新聞   Chat2DB   C++博客   博問  
     
    <2009年10月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿

    隨筆檔案

    文章檔案

    相冊

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 24小时免费直播在线观看| 在线看片v免费观看视频777| 看免费毛片天天看| 深夜a级毛片免费无码| 国产一区二区免费| 免费观看黄色的网站| 日韩精品成人亚洲专区| 亚洲va无码专区国产乱码| 亚洲国产成a人v在线| 久久亚洲精品无码网站| 两个人www免费高清视频| 久久国产乱子精品免费女| 亚洲精品成人网站在线观看| 亚洲午夜理论片在线观看| 4hu四虎免费影院www| 久草视频在线免费| 亚洲三级在线观看| 日韩免费观看一区| 亚洲国产一区二区三区| 亚洲日本香蕉视频| 国产区在线免费观看| 精品久久久久久久免费加勒比| 亚洲三区在线观看无套内射| 亚洲一区二区三区国产精华液| 暖暖在线日本免费中文| 亚洲黄网在线观看| 国产成人免费ā片在线观看老同学| 国产成人免费永久播放视频平台| 亚洲黄色免费在线观看| 24小时日本在线www免费的| 免费在线观看自拍性爱视频| 亚洲色无码专区在线观看| 黄色网址在线免费| 亚洲情A成黄在线观看动漫软件 | 亚洲av无码成人精品区一本二本| 又粗又硬又大又爽免费视频播放| 亚洲高清有码中文字| 亚洲av无码乱码在线观看野外| 亚洲日韩精品国产一区二区三区| 18禁免费无码无遮挡不卡网站| 久久人午夜亚洲精品无码区 |