<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 閱讀(732) 評論(0)  編輯  收藏

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


    網站導航:
     
    <2009年10月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿

    隨筆檔案

    文章檔案

    相冊

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲视频一区调教| 特黄特色大片免费| 国产福利免费观看| 中文字幕不卡免费视频| 亚洲成人在线免费观看| 日本不卡高清中文字幕免费| aa毛片免费全部播放完整| 亚洲第一页在线视频| 国产免费卡一卡三卡乱码| 久久久久国色av免费看| 亚洲人成自拍网站在线观看| 久久久久亚洲精品无码网址 | 免费A级毛片无码A| 日韩电影免费在线观看中文字幕| 中文无码亚洲精品字幕| 日韩亚洲欧洲在线com91tv| 成人免费网站在线观看| 在线看片免费人成视频福利| 亚洲欧洲免费无码| 久久精品国产亚洲av麻豆小说| 免费v片在线观看品善网| 国产91免费视频| 91在线视频免费观看| 看亚洲a级一级毛片| 亚洲精品一区二区三区四区乱码 | 美女黄频视频大全免费的| 久久精品国产亚洲AV无码娇色| 亚洲AV蜜桃永久无码精品| 亚洲高清中文字幕免费| av永久免费网站在线观看| 国产成人综合亚洲| 亚洲国产综合精品中文第一| 亚洲国产人成在线观看69网站| 亚洲 无码 在线 专区| 成人毛片免费在线观看| 日本黄网站动漫视频免费| a级精品九九九大片免费看| 羞羞视频免费网站含羞草| 亚洲人成网站18禁止| 亚洲噜噜噜噜噜影院在线播放| 亚洲色精品vr一区二区三区|