<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

    常用鏈接

    留言簿

    隨筆檔案

    文章檔案

    相冊

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 边摸边吃奶边做爽免费视频网站| 亚洲国产综合91精品麻豆| 456亚洲人成影院在线观| 91香蕉国产线观看免费全集 | 国产小视频免费观看| 亚洲AV成人噜噜无码网站| www.黄色免费网站| 中文字幕亚洲精品无码| 午夜私人影院免费体验区| 亚洲av成人片在线观看| 四虎影在线永久免费四虎地址8848aa| 色噜噜噜噜亚洲第一| 亚洲精品无码久久不卡| 东北美女野外bbwbbw免费| 亚洲精品自产拍在线观看动漫| 99久久免费精品视频| 亚洲看片无码在线视频| 热久久精品免费视频| 一边摸一边爽一边叫床免费视频| 在线日韩日本国产亚洲| 麻豆成人久久精品二区三区免费| 亚洲永久中文字幕在线| 日韩高清在线免费看| 一本岛v免费不卡一二三区| 亚洲爆乳无码专区| 手机在线看永久av片免费| 久久精品熟女亚洲av麻豆| 91麻豆国产自产在线观看亚洲| 麻豆精品成人免费国产片| 亚洲人成毛片线播放| 亚洲?V乱码久久精品蜜桃| 波多野结衣免费一区视频| 亚洲AV无码乱码在线观看代蜜桃| 免费看国产一级特黄aa大片| 国内少妇偷人精品视频免费| 亚洲精品二三区伊人久久| 亚洲无码高清在线观看| 免费福利视频导航| jzzjzz免费观看大片免费| 亚洲女人初试黑人巨高清| 全黄a免费一级毛片人人爱|