乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      Spring2.5、Struts2、Ibatis開(kāi)發(fā)框架搭建(二)

       WindySky 2011-06-15

      二、向項(xiàng)目中加入Spring Struts iBATIS框架

      2.1 準(zhǔn)備工作

             將下載的三個(gè)框架分別解壓縮。

      新建一個(gè)Web Project。

             2.2 向項(xiàng)目中加入Spring框架

      Spring解壓縮以后spring-framework-2.5.6-with-dependencies\spring-framework-2.5.6\dist目錄中的spring.jar復(fù)制到Web項(xiàng)目的WEB-INF/lib目錄中。

      復(fù)制spring-framework-2.5.6-with-dependencies\spring-framework-2.5.6\lib\log4j中的log4j相關(guān)的jar文件到項(xiàng)目中WEB-INF/lib目錄中。

      打開(kāi)WEB項(xiàng)目中的WEB-INF目錄中的web.xml文件,添加及結(jié)合項(xiàng)目實(shí)際情況配置以下內(nèi)容

          <!-- 以為是應(yīng)用程序名稱 -->

             <display-name>JI</display-name>

             <!-- 以下是應(yīng)用程序描述說(shuō)明性文字 -->

             <description>Job Integration</description>

            

             <!-- 上下文參數(shù),用于log4j以及spring中使用 -->

             <context-param>

                    <param-name>webAppRootKey</param-name>

                    <param-value>ji.root</param-value>

             </context-param>

            

             <!-- 應(yīng)用程序上下文參數(shù),指定log4j日志框架使用的配置參數(shù)文件位置 -->

             <context-param>

                    <param-name>log4jConfigLocation</param-name>

                    <param-value>/WEB-INF/log4j.properties</param-value>

             </context-param>

          <!-- 應(yīng)用程序上下文參數(shù),指定spring配置文件位置 -->

             <context-param>

                    <param-name>contextConfigLocation</param-name>

                    <param-value>

      在這里寫Spring參數(shù)配置文件的路徑

      例如 /WEB-INF/spring/applicationContext.xml

      </param-value>

             </context-param>

             <!-- 監(jiān)聽(tīng)器,用于初始化log4j日志框架的 -->

             <listener>

                    <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>

             </listener>

             <!-- 監(jiān)聽(tīng)器,用于初始化spring框架 -->

             <listener>

                    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

             </listener>

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多