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

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


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

    常用鏈接

    留言簿

    隨筆檔案

    文章檔案

    相冊

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲AV永久精品爱情岛论坛| 免费无码av片在线观看| 亚洲网站在线观看| 亚洲精品视频在线观看你懂的| 少妇高潮太爽了在线观看免费| 久爱免费观看在线网站| 黄色网址免费在线| 亚洲午夜无码毛片av久久京东热| 五月天网站亚洲小说| 国产午夜亚洲精品国产成人小说| 热99re久久精品精品免费| 亚洲黄色片免费看| 久久久久久AV无码免费网站 | 国产高清不卡免费视频| 黄色一级视频免费观看| 精品亚洲国产成人av| 亚洲熟女综合一区二区三区| 亚洲码在线中文在线观看| 亚洲bt加勒比一区二区| 亚洲高清国产AV拍精品青青草原| 久久久久亚洲AV成人网| 亚洲色图综合在线| 婷婷亚洲天堂影院| 免费在线观看a级毛片| 国产女高清在线看免费观看| 免费看美女被靠到爽| 香蕉高清免费永久在线视频| 午夜高清免费在线观看| 精品剧情v国产在免费线观看| 久久久久国色AV免费观看性色| 在线视频免费观看爽爽爽| 久久国产免费福利永久| 免费成人激情视频| 亚洲高清中文字幕免费| 猫咪社区免费资源在线观看| 91在线视频免费看| 成人免费无码大片A毛片抽搐色欲| 成人性生交大片免费看无遮挡| 免费一本色道久久一区| 全免费a级毛片免费**视频| 爽爽日本在线视频免费|