Spring 2.0 技術手冊目錄

Justin Lin
Justin LinTechnology / Community Evangelist at Free lancer

Spring 2.0 技術手冊

目錄




讀導     ............................................................................................ix



                                    Chapter 1             識認       Spring

1.1     紹介語術    . .............................................................................................1-2
1.2    (轉反制控       I nversion of Control        )  ..........................................................1-6
1.3    (入注賴依       D ependency Injection       )      ..................................................... 1-13
1.4   題主的來下接           ..................................................................................... 1-16



                                    Chapter 2 Spring                   門入
2.1           Spring
             式程    個一第        .............................................................................. 2-2
      2.1.1   定設、載下          Spring ...................................................................... 2-2
      2.1.2
      用使(境環計設    備準Spring                            Eclipse    )   . ........................................ 2-5
      2.1.3
        式程    個一第寫撰          Spring           .............................................................. 2-9
      2.1.4
        式程    個二第寫撰          Spring           ............................................................. 2-14
      2.1.5 Spring 2.0
        定設 的                   XML           . ............................................................. 2-17
2.2                 Spring IDE ........................................................................ 2-19
                 用使、裝安
      2.2.1      裝安Spring IDE ......................................................................... 2-19
      2.2.2      用使Spring IDE ........................................................................2-22
Spring 2.0      良信林(冊手術技                     – http://openhome.cc                     )

2.3   題主的來下接          . .................................................................................... 2-26



                                        Chapter 3 IoC              器容
3.1 Bean      理管本基      ..................................................................................... 3-2
      3.1.1 BeanFactory
                  、             A pplicationContext ............................................... 3-2
      3.1.2 Bean
              名別與稱名別識的                        .............................................................. 3-5
      3.1.3 Bean  化例實的          ............................................................................ 3-7
      3.1.4 Bean      的 scope ............................................................................ 3-9
      3.1.5 Bean 期周命生的             . ....................................................................... 3-11
      3.1.6 Bean 承繼的義定              ...................................................................... 3-14
3.2 Bean            定設賴依的  . ............................................................................... 3-18
      3.2.1 Type 2 IoC
                   、          T ype 3 IoC ............................................................. 3-18
      3.2.2    考參與定設值的賴依                 ................................................................. 3-23
      3.2.3          定綁動自.................................................................................. 3-26
      3.2.4          件物合集. ..................................................................................3-33
      3.2.5 Spring 2.0
              籤標 的            < util>        . ............................................................ 3-42

      3.2.6 Lookup Method Injection .......................................................... 3-45
3.3 Bean                ................................................................................... 3-49
                      理管階進
      3.3.1     XML
              式方態組的檔義定 非                         ......................................................... 3-49
      3.3.2 Aware 面介關相            . ....................................................................... 3-52

      3.3.3 BeanPostProcessor ................................................................... 3-54
      3.3.4 BeanFactoryPostProcessor ........................................................ 3-58
      3.3.5 PropertyPlaceholderConfigurer.................................................. 3-59
      3.3.6 PropertyOverrideConfigurer ...................................................... 3-61
      3.3.7 CustomEditorConfigurer ............................................................ 3-62
3.4   件事、息訊、源資               . ............................................................................. 3-68
      3.4.1
      得取的源資                 . .............................................................................. 3-68
錄目

      3.4.2
      息訊字文析解                      . ........................................................................... 3-69
      3.4.3
        件事聽傾                .................................................................................. 3-72
      3.4.4
        播傳件事                .................................................................................. 3-73
3.5      題主的來下接          ..................................................................................... 3-77



                                      Chapter 4 Spring AOP

4.1 AOP            . ........................................................................................... 4-2
                    門入
      4.1.1   探初制機理代從                AOP .................................................................. 4-2
      4.1.2 AOP
              語術與念觀                   ....................................................................... 4-11

      4.1.3 Spring AOP ............................................................................... 4-15
4.2 Advices.............................................................................................. 4-18
      4.2.1 Before Advice ........................................................................... 4-18
      4.2.2 After Advice .............................................................................4-22
      4.2.3 Around Advice .......................................................................... 4-25
      4.2.4 Throw Advice ...........................................................................4-28
4.3 Pointcut     、   A dvisor .............................................................................. 4-33

      4.3.1 NameMatchMethodPointcutAdvisor ........................................... 4-33
      4.3.2 RegExpMethodPointcutAdvisor .................................................. 4-37
      4.3.3 ControlFlowPointcut ................................................................. 4-39
      4.3.4 Pointcut            面介. ...........................................................................4-44
      4.3.5 Pointcut       作操集聯、集交                ...........................................................4-45

4.4 Introduction.......................................................................................4-48
      4.4.1 IntroductionInterceptor .............................................................4-48
      4.4.2 DelegatingIntroductionInterceptor............................................. 4-53
4.5 Autoproxing .......................................................................................4-59
      4.5.1 BeanNameAutoProxyCreator .....................................................4-59
      4.5.2 DefaultAdvisorAutoProxyCreator ...............................................4-60
4.6 Spring 2.0       的   AOP    援支    . ...................................................................... 4-63
Spring 2.0     良信林(冊手術技                     – http://openhome.cc                     )

          4.6.1 Before Advice      於基:        XML Schema ............................................. 4-63
          4.6.2 Before Advice      於基:        Annotation ............................................... 4-67
          4.6.3 Spring 2.0     的   Pointcut     義定     ....................................................... 4-69
          4.6.4 After Returning Advice         於基:         XML Schema ............................... 4-72
          4.6.5 After Returning Advice         於基:         Annotation .................................. 4-75
          4.6.6 After Throwing Advice          於基:        XML Schema ................................ 4-76
          4.6.7 After Throwing Advice          於基:        Annotation ................................... 4-80
          4.6.8 Around Advice       於基:        XML Schema ............................................ 4-82
          4.6.9 Around Advice       於基:        Annotation .............................................. 4-84
    4.7   題主的來下接         . .................................................................................... 4-86



                                   Chapter 5 JDBC                 援支易交、
    5.1 Spring           門入層久持  . ............................................................................... 5-2
          5.1.1 Spring
                     持支 的    DAO            .................................................................... 5-2
          5.1.2 DataSource
                      入注               . ........................................................................ 5-8
          5.1.3 DataSource
                      換置               . ...................................................................... 5-15
    5.2 JDBC          ......................................................................................... 5-19
                            援支
          5.2.1       JdbcTemplate ................................................................... 5-19
                            用使
          5.2.2 JdbcTemplate
                  新更與行執                              . ........................................................ 5-21
          5.2.3 JdbcTemplate
                     詢查                    ................................................................... 5-26
          5.2.4 JdbcTemplate
                  援支 的                  Lob           ........................................................ 5-29
          5.2.5     作操行進式方件物以                ..................................................................5-31

          5.2.6 DataFieldMaxValueIncrementer..................................................5-37
          5.2.7 Spring 2.0    的    NamedParameterJdbcTemplate ..............................5-37
          5.2.8 Spring 2.0    的    SimpleJdbcTemplate ............................................ 5-40
    5.3 JDBC           理管易交. .................................................................................. 5-43
          5.3.1 Spring
                  援支的易交對                     ................................................................. 5-43



v
錄目

      5.3.2 JDBC
              理管易交程編                    ...................................................................5-46
      5.3.3 JDBC
              理管易交告宣                    ...................................................................5-49
      5.3.4     紹介性屬的易交            ........................................................................ 5-54
      5.3.5 TransactionAttributeSource
                             、                         T ransactionAttribute ..................... 5-57
      5.3.6 Spring 2.0     於基:理管易交式告宣                        XML Schmea ...........................5-62
      5.3.7 Spring 2.0     於基:理管易交式告宣                        Annotation .............................5-64
5.4   題主的來下接           .....................................................................................5-68



                             Chapter 6 Hibernate                     與    Spring

6.1 Hibernate
       門入                . ................................................................................... 6-2
      6.1.1
         介簡         Hibernate ........................................................................... 6-2
      6.1.2
      定設、載下                  Hibernate................................................................. 6-5
      6.1.3
        個一第            Hibernate     式程     . ............................................................... 6-8
6.2   合整中Spring
            在               Hibernate ................................................................. 6-17
      6.2.1 SessionFactory        入注     .................................................................. 6-17

      6.2.2 HibernateTemplate ................................................................... 6-21
      6.2.3 HibernateTemplate
                            的                Lob   援支     .................................................6-24
      6.2.4 Hibernate      理管易交程編              ............................................................ 6-27
      6.2.5 Hibernate      理管易交告宣              ............................................................6-29
6.3   題主的來下接           ..................................................................................... 6-37



                           Chapter 7 Spring Web MVC                             架框
7.1 Spring Web MVC         門入     ...........................................................................7-2
      7.1.1    用使  Eclipse Web Tools Platform ..................................................7-2
      7.1.2   個一第     Spring Web MVC           式程     . ......................................................7-6

      7.1.3 WebApplicationContext ............................................................. 7-12
      7.1.4 Handler Mapping ....................................................................... 7-16


                                                                                                                     v
Spring 2.0       良信林(冊手術技                      – http://openhome.cc                     )

          7.1.5 Handler Interceptor....................................................................7-19
          7.1.6 Controller      構架承繼          .................................................................. 7-22

          7.1.7 ModelAndView.......................................................................... 7-25
          7.1.8 View Resolver ........................................................................... 7-29
          7.1.9 Exception Resolver .................................................................... 7-33
    7.2 Controller       別類作實       . ............................................................................7-34

          7.2.1 AbstractController .....................................................................7-34
          7.2.2 MultiActionController            與    ParameterMethodNameResolver ...........7-36
          7.2.3 MultiActionController            與   PropertiesMethodNameResolver........... 7-40

          7.2.4 ParameterizableViewController ................................................. 7-44
          7.2.5 AbstractCommandController ..................................................... 7-45
          7.2.6 AbstractFormController ............................................................ 7-49
          7.2.7 SimpleFormController ................................................................ 7-51
          7.2.8 AbstractWizardFormController .................................................. 7-56
          7.2.9 ThrowawayController.................................................................7-63
    7.3   配搭      Controller   別類關相的           . ................................................................ 7-66
          7.3.1
            作實           Validator........................................................................... 7-66
          7.3.2
            用使           PropertyEditor .................................................................. 7-69
          7.3.3
          傳上案檔                 ...................................................................................7-74
    7.4    題主的來下接           . .................................................................................... 7-80



                            Chapter 8 View                、案方層            W eb    合整架框
    8.1   與 合結    JSTL     Spring    籤標     . ..................................................................... 8-2
          8.1.1
           合結            JSTL ................................................................................... 8-2
          8.1.2 <spring:bind>
                     籤標                     . ..................................................................... 8-5
          8.1.3     法方個幾的定綁據數                  ................................................................... 8-9
          8.1.4 <spring:message>
                   籤標                              ............................................................. 8-12




v
錄目

      8.1.5 <spring:transform>               籤標      ............................................................ 8-15
      8.1.6 Spring 2.0           的   form    籤標     ............................................................. 8-21
8.2           View
           術技 它其             . ..................................................................................8-24
      8.2.1
         例為 以       Tiles            .............................................................................8-24
      8.2.2   訂自       View Class ........................................................................ 8-30
8.3        架框 Struts
                 合整            ................................................................................. 8-34
      8.3.1
      式程    個一第            Struts           . .................................................................... 8-34
      8.3.2
       合整中     在    Struts                Spring ............................................................. 8-39
8.4           JSF
            架框 合整           . ....................................................................................8-45
      8.4.1
       式程 個一第              JSF           ........................................................................8-45
      8.4.2
         合整中 在      JSF               Spring ................................................................. 8-53
8.5         題主的來下接          .....................................................................................8-59



                                             Chapter 9 API               裝封
9.1   程遠      ................................................................................................... 9-2

       9.1.1 RMI ......................................................................................... 9-2
       9.1.2 Hessian          、   B urlap .......................................................................9-7

       9.1.3 Http Invoker ........................................................................... 9-11
9.2   件郵      .................................................................................................. 9-14
       9.2.1        件郵單簡         ................................................................................ 9-14
       9.2.2 HTML  件郵                ............................................................................. 9-15
       9.2.3     檔附或片圖嵌內                   ...................................................................... 9-17
9.3   程排      .................................................................................................. 9-21
       9.3.1     用使       TimerTask ....................................................................... 9-21
       9.3.2     用使       MethodInvokingTimerTaskFactoryBean ............................9-24
       9.3.3     用使       Quartz ............................................................................9-25
       9.3.4     用使       MethodInvokingJobDetailFactoryBean .............................. 9-31



                                                                                                                          v
Spring 2.0      良信林(冊手術技                     – http://openhome.cc                      )

    9.4    題主的來下接           .................................................................................... 9-34



                              Chapter 10              :案專        S pring      籤書上線
    10.1      觀概式程    . ......................................................................................... 10-2
           10.1.1
           劃規構架                 . .............................................................................. 10-2
           10.1.2
           術技用採                  .............................................................................. 10-4
           10.1.3
           述概能功                  .............................................................................. 10-5
    10.2 Model
             計設           ...................................................................................... 10-6

           10.2.1 UserDAO .............................................................................. 10-6
           10.2.2 BookmarkDAO..................................................................... 10-10
           10.2.3 SimpleMail .......................................................................... 10-14
    10.3 View    計設     ....................................................................................... 10-16

           10.3.1 Tag Files .............................................................................. 10-16
           10.3.2        頁網冊註    ............................................................................. 10-18
           10.3.3        頁網入登    ............................................................................. 10-21
           10.3.4        頁網員會    ............................................................................ 10-24
           10.3.5      頁網籤書入加          . ..................................................................... 10-26
           10.3.6   頁網碼密回取、變改                    . ............................................................ 10-27
           10.3.7      向導新重頁首          . ..................................................................... 10-29
    10.4 Controller       計設   ............................................................................... 10-31

           10.4.1 RegisterController................................................................ 10-31
           10.4.2 LoginController ................................................................... 10-35
           10.4.3 MemberController................................................................ 10-37
           10.4.4 ForgotController ................................................................. 10-42
    10.5    定設態組      . ....................................................................................... 10-44
           10.5.1
           定設              web.xml ...................................................................... 10-44
           10.5.2
           定設              web-config.xml ............................................................10-45




v
錄目

       10.5.3
        定設      model-config.xml ......................................................... 10-47
10.6   題主的來下接    ................................................................................. 10-50

Recommended

Effect of tool size on fracture and fatigue behaviors of friction stir spot w... by
Effect of tool size on fracture and fatigue behaviors of friction stir spot w...Effect of tool size on fracture and fatigue behaviors of friction stir spot w...
Effect of tool size on fracture and fatigue behaviors of friction stir spot w...Dustin
844 views134 slides
Castor Reference Guide 1 3 1 by
Castor Reference Guide 1 3 1Castor Reference Guide 1 3 1
Castor Reference Guide 1 3 1paripelly
1.7K views139 slides
latest_ wasit rp data collection report_korrektur_ar by
latest_ wasit  rp data collection report_korrektur_arlatest_ wasit  rp data collection report_korrektur_ar
latest_ wasit rp data collection report_korrektur_arbsv-bup
187 views402 slides
Fr a200 by
Fr a200Fr a200
Fr a200Toàn Huỳnh
979 views124 slides
Calc ii complete by
Calc ii completeCalc ii complete
Calc ii completeyalfindira
1.3K views380 slides
TOC training Keycloak RedhatSSO advanced by
TOC training Keycloak RedhatSSO advancedTOC training Keycloak RedhatSSO advanced
TOC training Keycloak RedhatSSO advancedPascal Flamand
942 views5 slides

More Related Content

What's hot

TOC training KeyCloak Redhat SSO core by
TOC training KeyCloak Redhat SSO coreTOC training KeyCloak Redhat SSO core
TOC training KeyCloak Redhat SSO corePascal Flamand
1.8K views7 slides
Bom c375 by
Bom   c375Bom   c375
Bom c375AakashAgarwal54
128 views41 slides
Spring webflow-reference by
Spring webflow-referenceSpring webflow-reference
Spring webflow-referenceGustavo Arismendi
8.9K views98 slides
Mysql tutorial-excerpt-5.1-en by
Mysql tutorial-excerpt-5.1-enMysql tutorial-excerpt-5.1-en
Mysql tutorial-excerpt-5.1-enRifky Rachman
324 views88 slides
Spring live中文版完整版 by
Spring live中文版完整版Spring live中文版完整版
Spring live中文版完整版yuanao
200 views324 slides
TOC training Keycloak RedhatSSO UMA by
TOC training Keycloak RedhatSSO UMATOC training Keycloak RedhatSSO UMA
TOC training Keycloak RedhatSSO UMAPascal Flamand
3.8K views3 slides

What's hot(18)

TOC training KeyCloak Redhat SSO core by Pascal Flamand
TOC training KeyCloak Redhat SSO coreTOC training KeyCloak Redhat SSO core
TOC training KeyCloak Redhat SSO core
Pascal Flamand1.8K views
Mysql tutorial-excerpt-5.1-en by Rifky Rachman
Mysql tutorial-excerpt-5.1-enMysql tutorial-excerpt-5.1-en
Mysql tutorial-excerpt-5.1-en
Rifky Rachman324 views
Spring live中文版完整版 by yuanao
Spring live中文版完整版Spring live中文版完整版
Spring live中文版完整版
yuanao200 views
TOC training Keycloak RedhatSSO UMA by Pascal Flamand
TOC training Keycloak RedhatSSO UMATOC training Keycloak RedhatSSO UMA
TOC training Keycloak RedhatSSO UMA
Pascal Flamand3.8K views
C3d content ukie_doc0 by puilaos2011
C3d content ukie_doc0C3d content ukie_doc0
C3d content ukie_doc0
puilaos2011742 views
Asterisk 13-reference by Sergi Duró
Asterisk 13-referenceAsterisk 13-reference
Asterisk 13-reference
Sergi Duró484 views
Guía de administración de Asterisk by Cef Espinoza
Guía de administración de AsteriskGuía de administración de Asterisk
Guía de administración de Asterisk
Cef Espinoza2K views
Advance steel implementation_guide by desevillasoy
Advance steel implementation_guideAdvance steel implementation_guide
Advance steel implementation_guide
desevillasoy2K views
Java how to_program__7th_edition by ABDUmomo
Java how to_program__7th_editionJava how to_program__7th_edition
Java how to_program__7th_edition
ABDUmomo266 views
Algorithms notesforprofessionals by desi2907
Algorithms notesforprofessionalsAlgorithms notesforprofessionals
Algorithms notesforprofessionals
desi2907175 views
Man, marriage and machine – adventures in artificial advice by Asheesh Goja
Man, marriage and machine – adventures in artificial adviceMan, marriage and machine – adventures in artificial advice
Man, marriage and machine – adventures in artificial advice
Asheesh Goja835 views

Viewers also liked

Spring 2.0 技術手冊書名頁 by
Spring 2.0 技術手冊書名頁Spring 2.0 技術手冊書名頁
Spring 2.0 技術手冊書名頁Justin Lin
3.9K views1 slide
Spring 2.0 技術手冊第一章 - 認識 Spring by
Spring 2.0 技術手冊第一章 - 認識 SpringSpring 2.0 技術手冊第一章 - 認識 Spring
Spring 2.0 技術手冊第一章 - 認識 SpringJustin Lin
10K views17 slides
Spring 2.0 技術手冊導讀 by
Spring 2.0 技術手冊導讀Spring 2.0 技術手冊導讀
Spring 2.0 技術手冊導讀Justin Lin
1.7K views4 slides
Spring 2.0 技術手冊第六章 - Hibernate 與 Spring by
Spring 2.0 技術手冊第六章 - Hibernate 與 SpringSpring 2.0 技術手冊第六章 - Hibernate 與 Spring
Spring 2.0 技術手冊第六章 - Hibernate 與 SpringJustin Lin
3.2K views39 slides
Spring 2.0 技術手冊第五章 - JDBC、交易支援 by
Spring 2.0 技術手冊第五章 - JDBC、交易支援Spring 2.0 技術手冊第五章 - JDBC、交易支援
Spring 2.0 技術手冊第五章 - JDBC、交易支援Justin Lin
5.1K views68 slides
Spring 2.0 技術手冊第八章 - View 層方案、Web 框架整合 by
Spring 2.0 技術手冊第八章 - View 層方案、Web 框架整合Spring 2.0 技術手冊第八章 - View 層方案、Web 框架整合
Spring 2.0 技術手冊第八章 - View 層方案、Web 框架整合Justin Lin
2.6K views61 slides

Viewers also liked(20)

Spring 2.0 技術手冊書名頁 by Justin Lin
Spring 2.0 技術手冊書名頁Spring 2.0 技術手冊書名頁
Spring 2.0 技術手冊書名頁
Justin Lin3.9K views
Spring 2.0 技術手冊第一章 - 認識 Spring by Justin Lin
Spring 2.0 技術手冊第一章 - 認識 SpringSpring 2.0 技術手冊第一章 - 認識 Spring
Spring 2.0 技術手冊第一章 - 認識 Spring
Justin Lin10K views
Spring 2.0 技術手冊導讀 by Justin Lin
Spring 2.0 技術手冊導讀Spring 2.0 技術手冊導讀
Spring 2.0 技術手冊導讀
Justin Lin1.7K views
Spring 2.0 技術手冊第六章 - Hibernate 與 Spring by Justin Lin
Spring 2.0 技術手冊第六章 - Hibernate 與 SpringSpring 2.0 技術手冊第六章 - Hibernate 與 Spring
Spring 2.0 技術手冊第六章 - Hibernate 與 Spring
Justin Lin3.2K views
Spring 2.0 技術手冊第五章 - JDBC、交易支援 by Justin Lin
Spring 2.0 技術手冊第五章 - JDBC、交易支援Spring 2.0 技術手冊第五章 - JDBC、交易支援
Spring 2.0 技術手冊第五章 - JDBC、交易支援
Justin Lin5.1K views
Spring 2.0 技術手冊第八章 - View 層方案、Web 框架整合 by Justin Lin
Spring 2.0 技術手冊第八章 - View 層方案、Web 框架整合Spring 2.0 技術手冊第八章 - View 層方案、Web 框架整合
Spring 2.0 技術手冊第八章 - View 層方案、Web 框架整合
Justin Lin2.6K views
Spring 2.0 技術手冊第十章 - 專案:線上書籤 by Justin Lin
Spring 2.0 技術手冊第十章 - 專案:線上書籤Spring 2.0 技術手冊第十章 - 專案:線上書籤
Spring 2.0 技術手冊第十章 - 專案:線上書籤
Justin Lin2K views
Spring 2.0 技術手冊第三章 - IoC 容器 by Justin Lin
Spring 2.0 技術手冊第三章 - IoC 容器Spring 2.0 技術手冊第三章 - IoC 容器
Spring 2.0 技術手冊第三章 - IoC 容器
Justin Lin4.7K views
Spring 2.0 技術手冊第二章 - Spring 入門 by Justin Lin
Spring 2.0 技術手冊第二章 - Spring 入門Spring 2.0 技術手冊第二章 - Spring 入門
Spring 2.0 技術手冊第二章 - Spring 入門
Justin Lin5K views
Spring 2.0 技術手冊第七章 - Spring Web MVC 框架 by Justin Lin
Spring 2.0 技術手冊第七章 - Spring Web MVC 框架Spring 2.0 技術手冊第七章 - Spring Web MVC 框架
Spring 2.0 技術手冊第七章 - Spring Web MVC 框架
Justin Lin4.3K views
Spring 2.0 技術手冊第四章 - Spring AOP by Justin Lin
Spring 2.0 技術手冊第四章 - Spring AOPSpring 2.0 技術手冊第四章 - Spring AOP
Spring 2.0 技術手冊第四章 - Spring AOP
Justin Lin3.5K views
Spring 2.0 技術手冊第九章 - API 封裝 by Justin Lin
Spring 2.0 技術手冊第九章 - API 封裝Spring 2.0 技術手冊第九章 - API 封裝
Spring 2.0 技術手冊第九章 - API 封裝
Justin Lin2.1K views
Spring 2.0 技術手冊再版序 by Justin Lin
Spring 2.0 技術手冊再版序Spring 2.0 技術手冊再版序
Spring 2.0 技術手冊再版序
Justin Lin1.5K views
Servlet & JSP 教學手冊第二版 - 第 3 章:請求與回應 by Justin Lin
Servlet & JSP 教學手冊第二版 - 第 3 章:請求與回應Servlet & JSP 教學手冊第二版 - 第 3 章:請求與回應
Servlet & JSP 教學手冊第二版 - 第 3 章:請求與回應
Justin Lin4.5K views
Servlet & JSP 教學手冊第二版 - 第 1 章:簡介Web應用程式 by Justin Lin
Servlet & JSP 教學手冊第二版 - 第 1 章:簡介Web應用程式Servlet & JSP 教學手冊第二版 - 第 1 章:簡介Web應用程式
Servlet & JSP 教學手冊第二版 - 第 1 章:簡介Web應用程式
Justin Lin19.2K views
Servlet & JSP 教學手冊第二版 - 第 8 章:自訂標籤 by Justin Lin
Servlet & JSP 教學手冊第二版 - 第 8 章:自訂標籤Servlet & JSP 教學手冊第二版 - 第 8 章:自訂標籤
Servlet & JSP 教學手冊第二版 - 第 8 章:自訂標籤
Justin Lin1.8K views
Servlet & JSP 教學手冊第二版 - 第 10 章:Web 容器安全管理 by Justin Lin
Servlet & JSP 教學手冊第二版 - 第 10 章:Web 容器安全管理Servlet & JSP 教學手冊第二版 - 第 10 章:Web 容器安全管理
Servlet & JSP 教學手冊第二版 - 第 10 章:Web 容器安全管理
Justin Lin1.9K views
Servlet & JSP 教學手冊第二版 - 第 12 章:從模式到框架 by Justin Lin
Servlet & JSP 教學手冊第二版 - 第 12 章:從模式到框架Servlet & JSP 教學手冊第二版 - 第 12 章:從模式到框架
Servlet & JSP 教學手冊第二版 - 第 12 章:從模式到框架
Justin Lin2K views
Servlet & JSP 教學手冊第二版 - 第 4 章:會話管理 by Justin Lin
Servlet & JSP 教學手冊第二版 - 第 4 章:會話管理Servlet & JSP 教學手冊第二版 - 第 4 章:會話管理
Servlet & JSP 教學手冊第二版 - 第 4 章:會話管理
Justin Lin2.5K views

Similar to Spring 2.0 技術手冊目錄

spring-security-reference.pdf by
spring-security-reference.pdfspring-security-reference.pdf
spring-security-reference.pdfhorica9300
3 views555 slides
Tortoise svn 1.7-en by
Tortoise svn 1.7-enTortoise svn 1.7-en
Tortoise svn 1.7-ensreeharichepuri
3.6K views215 slides
Manual rosetta by
Manual rosettaManual rosetta
Manual rosettaJuliana Ribas Monteiro
450 views69 slides
Manual tutorial-spring-java by
Manual tutorial-spring-javaManual tutorial-spring-java
Manual tutorial-spring-javasagicar
1.1K views590 slides
Spring Reference by
Spring ReferenceSpring Reference
Spring Referenceasas
2.4K views590 slides
Protective Device Coordination by
Protective Device CoordinationProtective Device Coordination
Protective Device Coordinationjoeengi
12.2K views263 slides

Similar to Spring 2.0 技術手冊目錄(20)

spring-security-reference.pdf by horica9300
spring-security-reference.pdfspring-security-reference.pdf
spring-security-reference.pdf
horica93003 views
Manual tutorial-spring-java by sagicar
Manual tutorial-spring-javaManual tutorial-spring-java
Manual tutorial-spring-java
sagicar1.1K views
Spring Reference by asas
Spring ReferenceSpring Reference
Spring Reference
asas2.4K views
Protective Device Coordination by joeengi
Protective Device CoordinationProtective Device Coordination
Protective Device Coordination
joeengi12.2K views
Hibernate Reference by Syed Shahul
Hibernate ReferenceHibernate Reference
Hibernate Reference
Syed Shahul5.9K views
Seam reference by corpomohit
Seam referenceSeam reference
Seam reference
corpomohit6.9K views
Asterisk admin-guide by Sergi Duró
Asterisk admin-guideAsterisk admin-guide
Asterisk admin-guide
Sergi Duró1.1K views
Python_Programming_and_Numerical_Methods_A_Guide_for_Engineers_and.pdf by jankoabel2022
Python_Programming_and_Numerical_Methods_A_Guide_for_Engineers_and.pdfPython_Programming_and_Numerical_Methods_A_Guide_for_Engineers_and.pdf
Python_Programming_and_Numerical_Methods_A_Guide_for_Engineers_and.pdf
jankoabel20223 views
Dl5 k2 1 owners manual by Irwin Zucker
Dl5 k2 1 owners manualDl5 k2 1 owners manual
Dl5 k2 1 owners manual
Irwin Zucker197 views

More from Justin Lin

Ch14 簡介 Spring Boot by
Ch14 簡介 Spring BootCh14 簡介 Spring Boot
Ch14 簡介 Spring BootJustin Lin
872 views22 slides
Ch13 整合 Spring MVC/Security by
Ch13 整合 Spring MVC/SecurityCh13 整合 Spring MVC/Security
Ch13 整合 Spring MVC/SecurityJustin Lin
280 views58 slides
Ch12 Spring 起步走 by
Ch12 Spring 起步走Ch12 Spring 起步走
Ch12 Spring 起步走Justin Lin
274 views31 slides
Ch11 簡介 JavaMail by
Ch11 簡介 JavaMailCh11 簡介 JavaMail
Ch11 簡介 JavaMailJustin Lin
157 views8 slides
Ch10 Web 容器安全管理 by
Ch10 Web 容器安全管理Ch10 Web 容器安全管理
Ch10 Web 容器安全管理Justin Lin
153 views30 slides
Ch09 整合資料庫 by
Ch09 整合資料庫Ch09 整合資料庫
Ch09 整合資料庫Justin Lin
233 views92 slides

More from Justin Lin(20)

Ch14 簡介 Spring Boot by Justin Lin
Ch14 簡介 Spring BootCh14 簡介 Spring Boot
Ch14 簡介 Spring Boot
Justin Lin872 views
Ch13 整合 Spring MVC/Security by Justin Lin
Ch13 整合 Spring MVC/SecurityCh13 整合 Spring MVC/Security
Ch13 整合 Spring MVC/Security
Justin Lin280 views
Ch12 Spring 起步走 by Justin Lin
Ch12 Spring 起步走Ch12 Spring 起步走
Ch12 Spring 起步走
Justin Lin274 views
Ch11 簡介 JavaMail by Justin Lin
Ch11 簡介 JavaMailCh11 簡介 JavaMail
Ch11 簡介 JavaMail
Justin Lin157 views
Ch10 Web 容器安全管理 by Justin Lin
Ch10 Web 容器安全管理Ch10 Web 容器安全管理
Ch10 Web 容器安全管理
Justin Lin153 views
Ch09 整合資料庫 by Justin Lin
Ch09 整合資料庫Ch09 整合資料庫
Ch09 整合資料庫
Justin Lin233 views
Ch08 自訂標籤 by Justin Lin
Ch08 自訂標籤Ch08 自訂標籤
Ch08 自訂標籤
Justin Lin133 views
Ch07 使用 JSTL by Justin Lin
Ch07 使用 JSTLCh07 使用 JSTL
Ch07 使用 JSTL
Justin Lin161 views
Ch06 使用 JSP by Justin Lin
Ch06 使用 JSPCh06 使用 JSP
Ch06 使用 JSP
Justin Lin250 views
Ch05 Servlet 進階 API、過濾器與傾聽器 by Justin Lin
Ch05 Servlet 進階 API、過濾器與傾聽器Ch05 Servlet 進階 API、過濾器與傾聽器
Ch05 Servlet 進階 API、過濾器與傾聽器
Justin Lin204 views
Ch04 會話管理 by Justin Lin
Ch04 會話管理Ch04 會話管理
Ch04 會話管理
Justin Lin238 views
Ch03 請求與回應 by Justin Lin
Ch03 請求與回應Ch03 請求與回應
Ch03 請求與回應
Justin Lin236 views
Ch02 撰寫與設定 Servlet by Justin Lin
Ch02 撰寫與設定 ServletCh02 撰寫與設定 Servlet
Ch02 撰寫與設定 Servlet
Justin Lin352 views
CH1. 簡介 Web 應用程式 by Justin Lin
CH1. 簡介 Web 應用程式CH1. 簡介 Web 應用程式
CH1. 簡介 Web 應用程式
Justin Lin1.2K views
14. 進階主題 by Justin Lin
14. 進階主題14. 進階主題
14. 進階主題
Justin Lin405 views
13.並行、平行與非同步 by Justin Lin
13.並行、平行與非同步13.並行、平行與非同步
13.並行、平行與非同步
Justin Lin237 views
12. 除錯、測試與效能 by Justin Lin
12. 除錯、測試與效能12. 除錯、測試與效能
12. 除錯、測試與效能
Justin Lin153 views
11. 常用內建模組 by Justin Lin
11. 常用內建模組11. 常用內建模組
11. 常用內建模組
Justin Lin149 views
10. 資料永續與交換 by Justin Lin
10. 資料永續與交換10. 資料永續與交換
10. 資料永續與交換
Justin Lin156 views
9. 資料結構 by Justin Lin
9. 資料結構9. 資料結構
9. 資料結構
Justin Lin292 views

Recently uploaded

"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad... by
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad..."Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad...
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad...Fwdays
40 views30 slides
[2023] Putting the R! in R&D.pdf by
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdfEleanor McHugh
38 views127 slides
Samsung: CMM-H Tiered Memory Solution with Built-in DRAM by
Samsung: CMM-H Tiered Memory Solution with Built-in DRAMSamsung: CMM-H Tiered Memory Solution with Built-in DRAM
Samsung: CMM-H Tiered Memory Solution with Built-in DRAMCXL Forum
105 views7 slides
Data-centric AI and the convergence of data and model engineering: opportunit... by
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...Paolo Missier
29 views40 slides
MemVerge: Past Present and Future of CXL by
MemVerge: Past Present and Future of CXLMemVerge: Past Present and Future of CXL
MemVerge: Past Present and Future of CXLCXL Forum
110 views26 slides
Spesifikasi Lengkap ASUS Vivobook Go 14 by
Spesifikasi Lengkap ASUS Vivobook Go 14Spesifikasi Lengkap ASUS Vivobook Go 14
Spesifikasi Lengkap ASUS Vivobook Go 14Dot Semarang
35 views1 slide

Recently uploaded(20)

"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad... by Fwdays
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad..."Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad...
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad...
Fwdays40 views
[2023] Putting the R! in R&D.pdf by Eleanor McHugh
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh38 views
Samsung: CMM-H Tiered Memory Solution with Built-in DRAM by CXL Forum
Samsung: CMM-H Tiered Memory Solution with Built-in DRAMSamsung: CMM-H Tiered Memory Solution with Built-in DRAM
Samsung: CMM-H Tiered Memory Solution with Built-in DRAM
CXL Forum105 views
Data-centric AI and the convergence of data and model engineering: opportunit... by Paolo Missier
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...
Paolo Missier29 views
MemVerge: Past Present and Future of CXL by CXL Forum
MemVerge: Past Present and Future of CXLMemVerge: Past Present and Future of CXL
MemVerge: Past Present and Future of CXL
CXL Forum110 views
Spesifikasi Lengkap ASUS Vivobook Go 14 by Dot Semarang
Spesifikasi Lengkap ASUS Vivobook Go 14Spesifikasi Lengkap ASUS Vivobook Go 14
Spesifikasi Lengkap ASUS Vivobook Go 14
Dot Semarang35 views
"AI Startup Growth from Idea to 1M ARR", Oleksandr Uspenskyi by Fwdays
"AI Startup Growth from Idea to 1M ARR", Oleksandr Uspenskyi"AI Startup Growth from Idea to 1M ARR", Oleksandr Uspenskyi
"AI Startup Growth from Idea to 1M ARR", Oleksandr Uspenskyi
Fwdays26 views
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor... by Vadym Kazulkin
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
Vadym Kazulkin70 views
Micron CXL product and architecture update by CXL Forum
Micron CXL product and architecture updateMicron CXL product and architecture update
Micron CXL product and architecture update
CXL Forum27 views
.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV by Splunk
.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV
.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV
Splunk86 views
.conf Go 2023 - Data analysis as a routine by Splunk
.conf Go 2023 - Data analysis as a routine.conf Go 2023 - Data analysis as a routine
.conf Go 2023 - Data analysis as a routine
Splunk90 views
"How we switched to Kanban and how it integrates with product planning", Vady... by Fwdays
"How we switched to Kanban and how it integrates with product planning", Vady..."How we switched to Kanban and how it integrates with product planning", Vady...
"How we switched to Kanban and how it integrates with product planning", Vady...
Fwdays61 views
MemVerge: Memory Viewer Software by CXL Forum
MemVerge: Memory Viewer SoftwareMemVerge: Memory Viewer Software
MemVerge: Memory Viewer Software
CXL Forum118 views
Microchip: CXL Use Cases and Enabling Ecosystem by CXL Forum
Microchip: CXL Use Cases and Enabling EcosystemMicrochip: CXL Use Cases and Enabling Ecosystem
Microchip: CXL Use Cases and Enabling Ecosystem
CXL Forum129 views
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu... by NUS-ISS
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...
NUS-ISS32 views
Five Things You SHOULD Know About Postman by Postman
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman25 views

Spring 2.0 技術手冊目錄

  • 1. 目錄 讀導 ............................................................................................ix Chapter 1 識認 Spring 1.1 紹介語術 . .............................................................................................1-2 1.2 (轉反制控 I nversion of Control ) ..........................................................1-6 1.3 (入注賴依 D ependency Injection ) ..................................................... 1-13 1.4 題主的來下接 ..................................................................................... 1-16 Chapter 2 Spring 門入 2.1 Spring 式程 個一第 .............................................................................. 2-2 2.1.1 定設、載下 Spring ...................................................................... 2-2 2.1.2 用使(境環計設 備準Spring Eclipse ) . ........................................ 2-5 2.1.3 式程 個一第寫撰 Spring .............................................................. 2-9 2.1.4 式程 個二第寫撰 Spring ............................................................. 2-14 2.1.5 Spring 2.0 定設 的 XML . ............................................................. 2-17 2.2 Spring IDE ........................................................................ 2-19 用使、裝安 2.2.1 裝安Spring IDE ......................................................................... 2-19 2.2.2 用使Spring IDE ........................................................................2-22
  • 2. Spring 2.0 良信林(冊手術技 – http://openhome.cc ) 2.3 題主的來下接 . .................................................................................... 2-26 Chapter 3 IoC 器容 3.1 Bean 理管本基 ..................................................................................... 3-2 3.1.1 BeanFactory 、 A pplicationContext ............................................... 3-2 3.1.2 Bean 名別與稱名別識的 .............................................................. 3-5 3.1.3 Bean 化例實的 ............................................................................ 3-7 3.1.4 Bean 的 scope ............................................................................ 3-9 3.1.5 Bean 期周命生的 . ....................................................................... 3-11 3.1.6 Bean 承繼的義定 ...................................................................... 3-14 3.2 Bean 定設賴依的 . ............................................................................... 3-18 3.2.1 Type 2 IoC 、 T ype 3 IoC ............................................................. 3-18 3.2.2 考參與定設值的賴依 ................................................................. 3-23 3.2.3 定綁動自.................................................................................. 3-26 3.2.4 件物合集. ..................................................................................3-33 3.2.5 Spring 2.0 籤標 的 < util> . ............................................................ 3-42 3.2.6 Lookup Method Injection .......................................................... 3-45 3.3 Bean ................................................................................... 3-49 理管階進 3.3.1 XML 式方態組的檔義定 非 ......................................................... 3-49 3.3.2 Aware 面介關相 . ....................................................................... 3-52 3.3.3 BeanPostProcessor ................................................................... 3-54 3.3.4 BeanFactoryPostProcessor ........................................................ 3-58 3.3.5 PropertyPlaceholderConfigurer.................................................. 3-59 3.3.6 PropertyOverrideConfigurer ...................................................... 3-61 3.3.7 CustomEditorConfigurer ............................................................ 3-62 3.4 件事、息訊、源資 . ............................................................................. 3-68 3.4.1 得取的源資 . .............................................................................. 3-68
  • 3. 錄目 3.4.2 息訊字文析解 . ........................................................................... 3-69 3.4.3 件事聽傾 .................................................................................. 3-72 3.4.4 播傳件事 .................................................................................. 3-73 3.5 題主的來下接 ..................................................................................... 3-77 Chapter 4 Spring AOP 4.1 AOP . ........................................................................................... 4-2 門入 4.1.1 探初制機理代從 AOP .................................................................. 4-2 4.1.2 AOP 語術與念觀 ....................................................................... 4-11 4.1.3 Spring AOP ............................................................................... 4-15 4.2 Advices.............................................................................................. 4-18 4.2.1 Before Advice ........................................................................... 4-18 4.2.2 After Advice .............................................................................4-22 4.2.3 Around Advice .......................................................................... 4-25 4.2.4 Throw Advice ...........................................................................4-28 4.3 Pointcut 、 A dvisor .............................................................................. 4-33 4.3.1 NameMatchMethodPointcutAdvisor ........................................... 4-33 4.3.2 RegExpMethodPointcutAdvisor .................................................. 4-37 4.3.3 ControlFlowPointcut ................................................................. 4-39 4.3.4 Pointcut 面介. ...........................................................................4-44 4.3.5 Pointcut 作操集聯、集交 ...........................................................4-45 4.4 Introduction.......................................................................................4-48 4.4.1 IntroductionInterceptor .............................................................4-48 4.4.2 DelegatingIntroductionInterceptor............................................. 4-53 4.5 Autoproxing .......................................................................................4-59 4.5.1 BeanNameAutoProxyCreator .....................................................4-59 4.5.2 DefaultAdvisorAutoProxyCreator ...............................................4-60 4.6 Spring 2.0 的 AOP 援支 . ...................................................................... 4-63
  • 4. Spring 2.0 良信林(冊手術技 – http://openhome.cc ) 4.6.1 Before Advice 於基: XML Schema ............................................. 4-63 4.6.2 Before Advice 於基: Annotation ............................................... 4-67 4.6.3 Spring 2.0 的 Pointcut 義定 ....................................................... 4-69 4.6.4 After Returning Advice 於基: XML Schema ............................... 4-72 4.6.5 After Returning Advice 於基: Annotation .................................. 4-75 4.6.6 After Throwing Advice 於基: XML Schema ................................ 4-76 4.6.7 After Throwing Advice 於基: Annotation ................................... 4-80 4.6.8 Around Advice 於基: XML Schema ............................................ 4-82 4.6.9 Around Advice 於基: Annotation .............................................. 4-84 4.7 題主的來下接 . .................................................................................... 4-86 Chapter 5 JDBC 援支易交、 5.1 Spring 門入層久持 . ............................................................................... 5-2 5.1.1 Spring 持支 的 DAO .................................................................... 5-2 5.1.2 DataSource 入注 . ........................................................................ 5-8 5.1.3 DataSource 換置 . ...................................................................... 5-15 5.2 JDBC ......................................................................................... 5-19 援支 5.2.1 JdbcTemplate ................................................................... 5-19 用使 5.2.2 JdbcTemplate 新更與行執 . ........................................................ 5-21 5.2.3 JdbcTemplate 詢查 ................................................................... 5-26 5.2.4 JdbcTemplate 援支 的 Lob ........................................................ 5-29 5.2.5 作操行進式方件物以 ..................................................................5-31 5.2.6 DataFieldMaxValueIncrementer..................................................5-37 5.2.7 Spring 2.0 的 NamedParameterJdbcTemplate ..............................5-37 5.2.8 Spring 2.0 的 SimpleJdbcTemplate ............................................ 5-40 5.3 JDBC 理管易交. .................................................................................. 5-43 5.3.1 Spring 援支的易交對 ................................................................. 5-43 v
  • 5. 錄目 5.3.2 JDBC 理管易交程編 ...................................................................5-46 5.3.3 JDBC 理管易交告宣 ...................................................................5-49 5.3.4 紹介性屬的易交 ........................................................................ 5-54 5.3.5 TransactionAttributeSource 、 T ransactionAttribute ..................... 5-57 5.3.6 Spring 2.0 於基:理管易交式告宣 XML Schmea ...........................5-62 5.3.7 Spring 2.0 於基:理管易交式告宣 Annotation .............................5-64 5.4 題主的來下接 .....................................................................................5-68 Chapter 6 Hibernate 與 Spring 6.1 Hibernate 門入 . ................................................................................... 6-2 6.1.1 介簡 Hibernate ........................................................................... 6-2 6.1.2 定設、載下 Hibernate................................................................. 6-5 6.1.3 個一第 Hibernate 式程 . ............................................................... 6-8 6.2 合整中Spring 在 Hibernate ................................................................. 6-17 6.2.1 SessionFactory 入注 .................................................................. 6-17 6.2.2 HibernateTemplate ................................................................... 6-21 6.2.3 HibernateTemplate 的 Lob 援支 .................................................6-24 6.2.4 Hibernate 理管易交程編 ............................................................ 6-27 6.2.5 Hibernate 理管易交告宣 ............................................................6-29 6.3 題主的來下接 ..................................................................................... 6-37 Chapter 7 Spring Web MVC 架框 7.1 Spring Web MVC 門入 ...........................................................................7-2 7.1.1 用使 Eclipse Web Tools Platform ..................................................7-2 7.1.2 個一第 Spring Web MVC 式程 . ......................................................7-6 7.1.3 WebApplicationContext ............................................................. 7-12 7.1.4 Handler Mapping ....................................................................... 7-16 v
  • 6. Spring 2.0 良信林(冊手術技 – http://openhome.cc ) 7.1.5 Handler Interceptor....................................................................7-19 7.1.6 Controller 構架承繼 .................................................................. 7-22 7.1.7 ModelAndView.......................................................................... 7-25 7.1.8 View Resolver ........................................................................... 7-29 7.1.9 Exception Resolver .................................................................... 7-33 7.2 Controller 別類作實 . ............................................................................7-34 7.2.1 AbstractController .....................................................................7-34 7.2.2 MultiActionController 與 ParameterMethodNameResolver ...........7-36 7.2.3 MultiActionController 與 PropertiesMethodNameResolver........... 7-40 7.2.4 ParameterizableViewController ................................................. 7-44 7.2.5 AbstractCommandController ..................................................... 7-45 7.2.6 AbstractFormController ............................................................ 7-49 7.2.7 SimpleFormController ................................................................ 7-51 7.2.8 AbstractWizardFormController .................................................. 7-56 7.2.9 ThrowawayController.................................................................7-63 7.3 配搭 Controller 別類關相的 . ................................................................ 7-66 7.3.1 作實 Validator........................................................................... 7-66 7.3.2 用使 PropertyEditor .................................................................. 7-69 7.3.3 傳上案檔 ...................................................................................7-74 7.4 題主的來下接 . .................................................................................... 7-80 Chapter 8 View 、案方層 W eb 合整架框 8.1 與 合結 JSTL Spring 籤標 . ..................................................................... 8-2 8.1.1 合結 JSTL ................................................................................... 8-2 8.1.2 <spring:bind> 籤標 . ..................................................................... 8-5 8.1.3 法方個幾的定綁據數 ................................................................... 8-9 8.1.4 <spring:message> 籤標 ............................................................. 8-12 v
  • 7. 錄目 8.1.5 <spring:transform> 籤標 ............................................................ 8-15 8.1.6 Spring 2.0 的 form 籤標 ............................................................. 8-21 8.2 View 術技 它其 . ..................................................................................8-24 8.2.1 例為 以 Tiles .............................................................................8-24 8.2.2 訂自 View Class ........................................................................ 8-30 8.3 架框 Struts 合整 ................................................................................. 8-34 8.3.1 式程 個一第 Struts . .................................................................... 8-34 8.3.2 合整中 在 Struts Spring ............................................................. 8-39 8.4 JSF 架框 合整 . ....................................................................................8-45 8.4.1 式程 個一第 JSF ........................................................................8-45 8.4.2 合整中 在 JSF Spring ................................................................. 8-53 8.5 題主的來下接 .....................................................................................8-59 Chapter 9 API 裝封 9.1 程遠 ................................................................................................... 9-2 9.1.1 RMI ......................................................................................... 9-2 9.1.2 Hessian 、 B urlap .......................................................................9-7 9.1.3 Http Invoker ........................................................................... 9-11 9.2 件郵 .................................................................................................. 9-14 9.2.1 件郵單簡 ................................................................................ 9-14 9.2.2 HTML 件郵 ............................................................................. 9-15 9.2.3 檔附或片圖嵌內 ...................................................................... 9-17 9.3 程排 .................................................................................................. 9-21 9.3.1 用使 TimerTask ....................................................................... 9-21 9.3.2 用使 MethodInvokingTimerTaskFactoryBean ............................9-24 9.3.3 用使 Quartz ............................................................................9-25 9.3.4 用使 MethodInvokingJobDetailFactoryBean .............................. 9-31 v
  • 8. Spring 2.0 良信林(冊手術技 – http://openhome.cc ) 9.4 題主的來下接 .................................................................................... 9-34 Chapter 10 :案專 S pring 籤書上線 10.1 觀概式程 . ......................................................................................... 10-2 10.1.1 劃規構架 . .............................................................................. 10-2 10.1.2 術技用採 .............................................................................. 10-4 10.1.3 述概能功 .............................................................................. 10-5 10.2 Model 計設 ...................................................................................... 10-6 10.2.1 UserDAO .............................................................................. 10-6 10.2.2 BookmarkDAO..................................................................... 10-10 10.2.3 SimpleMail .......................................................................... 10-14 10.3 View 計設 ....................................................................................... 10-16 10.3.1 Tag Files .............................................................................. 10-16 10.3.2 頁網冊註 ............................................................................. 10-18 10.3.3 頁網入登 ............................................................................. 10-21 10.3.4 頁網員會 ............................................................................ 10-24 10.3.5 頁網籤書入加 . ..................................................................... 10-26 10.3.6 頁網碼密回取、變改 . ............................................................ 10-27 10.3.7 向導新重頁首 . ..................................................................... 10-29 10.4 Controller 計設 ............................................................................... 10-31 10.4.1 RegisterController................................................................ 10-31 10.4.2 LoginController ................................................................... 10-35 10.4.3 MemberController................................................................ 10-37 10.4.4 ForgotController ................................................................. 10-42 10.5 定設態組 . ....................................................................................... 10-44 10.5.1 定設 web.xml ...................................................................... 10-44 10.5.2 定設 web-config.xml ............................................................10-45 v
  • 9. 錄目 10.5.3 定設 model-config.xml ......................................................... 10-47 10.6 題主的來下接 ................................................................................. 10-50