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

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

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

    隨筆-34  評(píng)論-1965  文章-0  trackbacks-0

    IoC(Inversion of Control,以下譯為控制反轉(zhuǎn))隨著Java社區(qū)中輕量級(jí)容器(Lightweight Contianer)的推廣而越來越為大家耳熟能詳。在此,我不想再多費(fèi)唇舌來解釋“什么是控制反轉(zhuǎn)”和“為什么需要控制反轉(zhuǎn)”。因?yàn)榛ヂ?lián)網(wǎng)上已經(jīng)有非常多的文章對(duì)諸如此類的問題作了精彩而準(zhǔn)確的回答。大家可以去讀一下Rod Johnson和Juergen Hoeller合著的《Expert one-on-one J2EE Development without EJB》或Martin Fowler所寫的《Inversion of Control Containers and the Dependency Injection pattern》。

    言歸正傳,本文的目的主要是介紹在Struts 2中實(shí)現(xiàn)控制反轉(zhuǎn)。

    歷史背景

    眾所周知,Struts 2是以Webwork 2作為基礎(chǔ)發(fā)展出來。而在Webwork 2.2之前的Webwork版本,其自身有一套控制反轉(zhuǎn)的實(shí)現(xiàn),Webwork 2.2在Spring 框架的如火如荼發(fā)展的背景下,決定放棄控制反轉(zhuǎn)功能的開發(fā),轉(zhuǎn)由Spring實(shí)現(xiàn)。值得一提的是,Spring確實(shí)是一個(gè)值得學(xué)習(xí)的框架,因?yàn)橛性絹碓蕉嗟拈_源組件(如iBATIS等)都放棄與Spring重疊的功能的開發(fā)。因此,Struts 2推薦大家通過Spring實(shí)現(xiàn)控制反轉(zhuǎn)。

    具體實(shí)現(xiàn)

    首先,在開發(fā)環(huán)境中配置好Struts 2的工程。對(duì)這部分仍然有問題的朋友,請(qǐng)參考我的早前的文章。

    然后,將所需的Spring的jar包加入到工程的構(gòu)建環(huán)境(Build Path)中,如下圖1所示:

    圖1 所依賴的Spring的jar包
    圖1 所依賴的Spring的jar包

    本文使用的是Spring 2.0,Spring強(qiáng)烈建議大家在使用其jar包時(shí),只引用需要的包,原因是Spring是一個(gè)功能非常強(qiáng)大的框架,其中有些功能是您不需要的;而且Spring提倡的是“按需所取”,而不是EJB的“愛我就要愛我的一切”。當(dāng)然,如果你怕麻煩或者是不清楚每個(gè)包的作用,引用一個(gè)Spring的總包也未嘗不可。

    接下來,就要修改WEB-INF\web.xml文件了,內(nèi)容為:

    <? xml version="1.0" encoding="UTF-8" ?>
    < web-app version ="2.4" xmlns ="http://java.sun.com/xml/ns/j2ee"
    ? ? xmlns:xsi
    ="http://www.w3.org/2001/XMLSchema-instance"
    ? ? xsi:schemaLocation
    ="http://java.sun.com/xml/ns/j2ee?
    ? ? http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    >

    ? ?
    < display-name > Struts 2 IoC Demo </ display-name >

    ? ?
    < filter >
    ? ? ? ?
    < filter-name > struts-cleanup </ filter-name >
    ? ? ? ?
    < filter-class >
    ? ? ? ? ? ? org.apache.struts2.dispatcher.ActionContextCleanUp
    ? ? ? ?
    </ filter-class >
    ? ?
    </ filter >

    ? ?
    < filter >
    ? ? ? ?
    < filter-name > struts2 </ filter-name >
    ? ? ? ?
    < filter-class >
    ? ? ? ? ? ? org.apache.struts2.dispatcher.FilterDispatcher
    ? ? ? ?
    </ filter-class >
    ? ?
    </ filter >

    ? ?
    < filter-mapping >
    ? ? ? ?
    < filter-name > struts-cleanup </ filter-name >
    ? ? ? ?
    < url-pattern > /* </ url-pattern >
    ? ?
    </ filter-mapping >

    ? ?
    < filter-mapping >
    ? ? ? ?
    < filter-name > struts2 </ filter-name >
    ? ? ? ?
    < url-pattern > /* </ url-pattern >
    ? ?
    </ filter-mapping >

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

    ? ?
    < welcome-file-list >
    ? ? ? ?
    < welcome-file > index.html </ welcome-file >
    ? ?
    </ welcome-file-list >
    </ web-app >
    清單1 WEB-INF\web.xml

    大家一看便知道,主要是加入Spring的ContextLoaderListener監(jiān)聽器,方便Spring與Web容器交互。

    緊接著,修改Struts.properties文件,告知Struts 2運(yùn)行時(shí)使用Spring來創(chuàng)建對(duì)象(如Action等),內(nèi)容如下:

    struts.objectFactory = spring
    清單2 classes\struts.properties

    再下來,遵循Spring的原則——面向接口編程,創(chuàng)建接口ChatService,代碼如下:

    package tutorial;

    import java.util.Set;

    public interface ChatService {
    ? ?Set
    < String > getUserNames();
    }
    清單3 tutorial.ChatService.java

    然后,再創(chuàng)建一個(gè)默認(rèn)實(shí)現(xiàn)ChatServiceImpl,代碼如下:

    package tutorial;

    import java.util.HashSet;
    import java.util.Set;

    public class ChatServiceImpl implements ChatService {

    ? ?
    public Set < String > getUserNames() {
    ? ? ? ?Set
    < String > users = new HashSet < String > ();
    ? ? ? ?users.add(
    " Max " );
    ? ? ? ?users.add(
    " Scott " );
    ? ? ? ?users.add(
    " Bob " );
    ? ? ? ?
    return users;
    ? ?}


    }
    清單4 tutorial.ChatServiceImpl.java

    接下來,就該新建Action了。tutorial.ChatAction.java的代碼如下:

    package tutorial;

    import java.util.Set;

    import com.opensymphony.xwork2.ActionSupport;

    public class ChatAction extends ActionSupport {
    ? ?
    private static final long serialVersionUID = 8445871212065L ;?
    ? ?
    ? ?
    private ChatService chatService;
    ? ?
    private Set < String > userNames;

    ? ?
    public void setChatService(ChatService chatService) {
    ? ? ? ?
    this .chatService = chatService;
    ? ?}

    ? ?
    ? ?
    public Set < String > getUserNames() {
    ? ? ? ?
    return userNames;
    ? ?}

    ? ?
    ? ?@Override
    ? ?
    public String execute() {
    ? ? ? ?userNames
    = chatService.getUserNames();
    ? ? ? ?
    return SUCCESS;
    ? ?}

    ? ?
    }
    清單5 tutorial.ChatAction.java

    ChatAction類使用屬性(Getter/Setter)注入法取得ChatService對(duì)象。

    然后,配置Spring的applicationContext.xml(位于WEB-INF下)文件,內(nèi)容如下:

    <? xml version="1.0" encoding="UTF-8" ?>
    < beans xmlns ="http://www.springframework.org/schema/beans"
    ? ? xmlns:xsi
    ="http://www.w3.org/2001/XMLSchema-instance"
    ? ? xsi:schemaLocation
    ="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" >
    ? ?
    < bean id ="chatService" class ="tutorial.ChatServiceImpl" />
    ? ?
    < bean id ="chatAction" class ="tutorial.ChatAction" scope ="prototype" >
    ? ? ? ?
    < property name ="chatService" >
    ? ? ? ? ? ?
    < ref local ="chatService" />
    ? ? ? ?
    </ property >
    ? ?
    </ bean >
    </ beans >
    清單6 WEB-INF\applicationContext.xml

    上述代碼有二點(diǎn)值得大家注意的:

    1. Struts 2會(huì)為每一個(gè)請(qǐng)求創(chuàng)建一個(gè)Action對(duì)象,所以在定義chatAction時(shí),使用scope="prototype"。這樣Spring就會(huì)每次都返回一個(gè)新的ChatAction對(duì)象了;
    2. 因?yàn)镃hatServiceImpl被配置為默認(rèn)的scope(也即是singleton,唯一的),所以在實(shí)現(xiàn)時(shí)應(yīng)保證其線程安全(關(guān)于編寫線程安全的代碼的討論已經(jīng)超出本文的范圍,更超出了本人的能力范圍,大家可以參考Addison Wesley Professional出版的《Java Concurrency in Practice》)。

    接下來,在classes/struts.xml中配置Action,內(nèi)容如下:

    <! DOCTYPE struts PUBLIC
    ? ? ? ? "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    ? ? ? ? "http://struts.apache.org/dtds/struts-2.0.dtd"
    >
    < struts >
    ? ?
    < include file ="struts-default.xml" /> ? ?
    ? ??
    ? ?
    < package name ="Struts2_IoC" extends ="struts-default" >
    ? ? ? ?
    < action name ="Chat" class ="chatAction" >
    ? ? ? ? ? ?
    < result > /UserList.jsp </ result >
    ? ? ? ?
    </ action >
    ? ?
    </ package > ? ?
    </ struts >
    清單7 classes\struts.xml

    這里的Action和平常不同的就是class屬性,它對(duì)應(yīng)于Spring所定義的bean的id,而不是它的類全名。

    最后,讓我們看看/UserList.jsp,內(nèi)容如下:

    <% @ page contentType = " text/html; charset=UTF-8 " %>
    <% @ taglib prefix = " s " uri = " /struts-tags " %>
    < html >
    < head >
    ? ?
    < title > User List </ title >
    </ head >

    < body >
    ? ?
    < h2 > User List </ h2 >
    ? ?
    < ol >
    ? ?
    < s:iterator value ="userNames" >
    ? ? ? ?
    < li >< s:property /></ li >
    ? ?
    </ s:iterator >
    ? ?
    </ ol >
    </ body >
    </ html >
    清單8 /UserList.jsp

    大功告成,分布運(yùn)行應(yīng)用程序,在瀏覽器中鍵入http://localhost:8080/Struts2_IoC/Chat.action,出現(xiàn)如圖2所示頁面:

    圖2 /ListUser.jsp
    圖2 /ListUser.jsp

    總結(jié)

    通過Spring在Struts 2上實(shí)現(xiàn)控制反轉(zhuǎn)是強(qiáng)烈推薦的做法,當(dāng)然您也可以組合其它的實(shí)現(xiàn)(如Pico等)。

    posted on 2006-12-28 17:37 Max 閱讀(33791) 評(píng)論(139)  編輯  收藏 所屬分類: Struts 2.0系列
    評(píng)論共2頁: 上一頁 1 2 

    評(píng)論:
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2006-12-28 17:44 | BeanSoft
    呵呵,支持一個(gè)... 偶正在初學(xué) spring...  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2006-12-29 00:52 | AlleNny
    我有個(gè)問題:

    你在文中提到“告知Struts 2運(yùn)行時(shí)使用Spring來創(chuàng)建對(duì)象(如Action等”,但是例子中由spring創(chuàng)建的是業(yè)務(wù)邏輯的實(shí)現(xiàn):
    < bean id ="chatService" class ="tutorial.ChatServiceImpl" />
    為何要將業(yè)務(wù)接口注入Action中,我覺得直接在Action中調(diào)用也無妨啊,難道不允許容器“依賴”業(yè)務(wù)邏輯?

    個(gè)人愚見,請(qǐng)指教
      回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2006-12-29 09:27 | Tendy
    @AlleNny
    ---
    為何要將業(yè)務(wù)接口注入Action中,
    ---
    re: 是業(yè)務(wù)接口的實(shí)現(xiàn)(tutorial.ChatServiceImpl) 注入 action

    ---
    我覺得直接在Action中調(diào)用也無妨啊,難道不允許容器“依賴”業(yè)務(wù)邏輯?
    ---
    re: 在 action 中 new tutorial.ChatServiceImpl() 也行
    但當(dāng)你需要使用不同的實(shí)現(xiàn)時(shí),要改源代碼,還要編譯
    用注入的方式,修改配置文件即可  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2006-12-29 14:16 | Max
    @AlleNny
    Tendy說得很正確,我來補(bǔ)充幾點(diǎn):
    1、松耦合(Loose coupling)可以給程序的測試和維護(hù)帶來很多好處;
    2、通過Spring的IoC方式,可以簡單地創(chuàng)建Singleton對(duì)象。
    建議讀一下Martin Fowler所寫的《Inversion of Control Containers and the Dependency Injection pattern》,你可以google一下,應(yīng)該有中文翻譯的。  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2006-12-29 22:21 | Goingmm[匿名]
    @"為何要將業(yè)務(wù)接口注入Action中"? 其實(shí)這也不是唯一的選擇?。?

    這樣配置<ref local="chatService" />, 他們之間的關(guān)聯(lián)關(guān)系會(huì)比較明確(這種關(guān)系至少在配置文件的映射上很直觀)
    如想達(dá)到更簡潔的配置效果(放棄上面這種直觀的關(guān)聯(lián)關(guān)系)可以這樣配置(其他地方都不需要修改)
    <bean id="chatService" class="tutorial.ChatServiceImpl" autowire="byName"/>
    <bean id="chatAction" class = "tutorial.ChatAction" scope="prototype" autowire="byName"/>
      回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-01-29 15:44 | Sophia
    新手上路,照著做了一遍,指出一個(gè)小遺漏,tutorial.ChatAction.java文件中缺少setter方法,導(dǎo)致頁面上的list顯示不出來。  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-01-29 18:28 | Max
    @Sophia
    可能你漏了什么,顯示userNames應(yīng)該不用setter。  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-11 16:51 | praguesky
    不能spring接管action嗎...這樣?。策叾家渲胊ction 麻煩了...  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-20 23:07 | 聶永
    謝謝~
    正是我所想要的.原來以為只有SPRING MVC才可以實(shí)現(xiàn)IOC,現(xiàn)在STRUTS實(shí)現(xiàn)了,可以舍棄SPRING MVC了。呵呵~
    希望樓主,加油啊,期待老大的好文章的出現(xiàn)o:)))  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-22 20:00 | yangdamao
    我照著做,怎麼做不出來啊,我引入的是spring.jar包其他完全一樣啊!!----新手,剛接觸struts  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-22 23:00 | Max
    @yangdamao
    那要看看你運(yùn)行的后出什么異常,才知道問題所在。  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-23 17:25 | xiaolan
    能不能用STRUTS2.06的做一個(gè)結(jié)合SPRING2的DEMO?
    你上面的例子我運(yùn)行不了,< package name ="Struts2_IoC" extends ="struts-default" >為什么是package name ="Struts2_IoC"??請(qǐng)指教.
    能不能給發(fā)個(gè)EMAIL,xiaomeng1027@163.com  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-23 18:45 | yangdamao
    HTTP Status 404 - /Struts2_IoC2/Chat.action

    type Status report

    message /Struts2_IoC2/Chat.action

    description The requested resource (/Struts2_IoC2/Chat.action) is not available.

    總是提示這個(gè)錯(cuò)誤,我快沒轍了!!!  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-24 09:18 | yangdamao
    請(qǐng)問一下是不是我哪裡配置錯(cuò)了?可我是把上面的代碼copy過去的啊!!!  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-24 22:26 | Max
    @xiaolan
    本文的方法是Struts 2的通用做法,在Struts 2.0.6也是如此。  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-24 22:28 | Max
    @yangdamao
    這證明您的應(yīng)用程序沒有運(yùn)行起來,可能有其它異常,請(qǐng)檢查一下你的服務(wù)器的LOG。  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-26 10:10 | yangdamao
    2007/3/26 上午 10:06:10 org.apache.catalina.core.StandardContext listenerStart
    嚴(yán)重的: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanDefinitionStoreException: Line 4 in XML document from ServletContext resource [/WEB-INF/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
    org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".

    這是提示的錯(cuò)誤,請(qǐng)教一下該如何改呢?  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-26 10:13 | yangdamao
    問題就出在applicationContext.xml中,麻煩將您的源碼發(fā)到我郵箱(anne.yang@stella.com.hk)中一份可以嗎?  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 09:16 | yangdamao
    還有哪位高手做出來了,請(qǐng)多多指教!  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 09:42 | xinhang
    有關(guān)struts2方面的學(xué)習(xí)資料太少了﹗
    誰還有struts2的學(xué)習(xí)資料﹗請(qǐng)幫個(gè)忙
    發(fā)到0907qw@163.com(謝謝﹗﹗當(dāng)然要是中文滴﹗偶英文差﹗)
    (Max的資料是好﹗但是資料太少了﹗)  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 10:23 | Max
    @yangdamao
    @xiaolan
    源代碼已經(jīng)發(fā)送你們的郵箱。:-)  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 11:09 | yangdamao
    Max先生,謝謝你,用你的源代碼效果出來了,我再仔細(xì)對(duì)比一下看是哪裡出了問題!  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 11:28 | javafan
    也給我一份源碼吧,非常感謝!
    2003310cjs@163.com  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 11:41 | javafan
    問個(gè)問題~
    Struts.properties文件怎么配置?是如何讀取的(在哪個(gè)文件中讀取)?
    在代碼里沒發(fā)現(xiàn)讀取文件的信息.  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 13:05 | yangdamao
    @javafan
    替Max分擔(dān)一部分,源碼已發(fā)到你郵箱  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 13:53 | yangdamao
    我所發(fā)現(xiàn)的唯一區(qū)別就是那幾個(gè)jar文件不一樣,我的是從我同事那里考過來的,沒注意是那個(gè)版本,但是您的jar文件要比我原來的那個(gè)大十幾kB.  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 13:57 | yangdamao
    謝謝您提供的系列資料,受益匪淺!!  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 16:19 | jintian
    為什么我的頁面上只顯示

    User List

    沒有其它的 1. Bob
    等﹗﹗請(qǐng)問是不是那里沒設(shè)置??
    怎么會(huì)出現(xiàn)這種情況﹗﹗
      回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 16:24 | jintian
    郁悶﹗﹗原來是Chat.action﹗﹗
    哎﹗﹗  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-28 18:33 | javafan
    郵件已收到!
    非常感謝yangdamao和max二位  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC[未登錄] 2007-03-29 18:54 | steven
    你上面的例子我出404錯(cuò)誤找不到地址,< package name ="Struts2_IoC" extends ="struts-default" >為什么是package name ="Struts2_IoC"??請(qǐng)指教,而且地址是http://localhost:8080/Struts2_IoC/Chat.action。請(qǐng)把源碼包括工程文件發(fā)到我郵箱:chenyufei_icewolf@hotmail.com。謝謝  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-29 18:58 | yangdamao
    package 的name 可以是任意的,不用必須和 Struts2_IoC 一樣  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-29 19:00 | yangdamao
    @steven
    正好路過,發(fā)你郵箱了  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-03-30 16:39 | xiaolan
    你好,我已經(jīng)收的你的代碼了.謝謝,項(xiàng)目正要用,真是雪中送炭.感激不盡  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-04-05 16:34 | panka
    Action class [chatAction] not found - action - file:/D:/server/apache-tomcat-5.5.23/webapps/tstruts2ioc/WEB-INF/classes/struts.xml:8:42

    我照例子調(diào)試好久,一直都是500錯(cuò)誤,沒有改動(dòng)啊.
    麻煩也給我發(fā)一份源碼吧,我油箱是mrpanqinag@gmail.com  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-04-05 16:42 | panka
    @panka
    不好意思油箱寫錯(cuò)了 ,真確的是 mrpanqiang@gmail.com  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-04-06 18:00 | yangdamao
    @panqiang

    I have sent to you!!  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-04-07 23:03 | Max
    @yangdamao
    I appreciate that.  回復(fù)  更多評(píng)論
      
    # re: 在Struts 2中實(shí)現(xiàn)IoC 2007-04-11 22:54 | niehanzi
    您好,我按照您的步驟做了一下,總是不成功,您能給我發(fā)一份源代碼嗎?
    我的郵箱是:kedahanzi@163.com,萬分感謝!  回復(fù)  更多評(píng)論
      
    評(píng)論共2頁: 上一頁 1 2 
    主站蜘蛛池模板: 免费在线观看日韩| 免费观看的毛片手机视频| 亚洲最大免费视频网| 国产卡一卡二卡三免费入口| 在线观看免费亚洲| 亚洲av无码国产综合专区| 亚洲高清乱码午夜电影网| av片在线观看永久免费| 99爱在线精品视频免费观看9| 免费在线观看的网站| 亚洲精品免费网站| 国产免费变态视频网址网站| 亚洲人成色7777在线观看| 久久久无码精品亚洲日韩京东传媒| 亚洲人成网站在线播放2019| 国产JIZZ中国JIZZ免费看| 亚洲美女免费视频| 亚洲国产成人久久精品99| 亚洲视频一区在线| 老司机福利在线免费观看| 日韩精品免费在线视频| 在线成人a毛片免费播放| 亚洲人成色77777| 99久久国产亚洲综合精品| 中文字幕免费在线播放| 久久经典免费视频| xvideos亚洲永久网址| 免费在线观看你懂的| 亚洲AV日韩AV永久无码久久| 亚洲a∨无码精品色午夜| 久久这里只精品99re免费| 国产日产成人免费视频在线观看| 久久夜色精品国产亚洲| 亚洲国产精品嫩草影院| 一级毛片aaaaaa免费看| 婷婷综合缴情亚洲狠狠尤物| 久久久久亚洲av无码专区| 亚洲粉嫩美白在线| 中国国产高清免费av片| 日韩精品视频免费网址| 亚洲AV无码乱码国产麻豆穿越|