Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
NIG                ALBERT KUOALBERT_KUO@CHT.COM.TW
Agenda                               — —  Web Application Layering—  Spring MVC Application Layers—  Resources
15C                       24H (If+Schema     23H                 VB/Cobol                        Any)Document
15C/23H/24H       trunkSDSdeliverableSchema Document   trunkSDSschemaindex.htmlVB                trunkSDSsource codeclient...
Web Application Layering                                                                                Crosscutting Aspec...
Spring MVC Application Layers                                            User Interface Domain Model                      ...
Spring MVC Application Layers   NIG
Spring MVC Application Layers   NIG                   – cont.
Business / Service Layer                                                  Add @Service annotation is a must               ...
Persistence Layer                         Daoand domain class had beengenerated via code generator.You may need to add fin...
Spring MVC Architecture                                           Spring        NIG005Controller   request               D...
User Interface / Web Layer                                                                    Spring         NIG005Control...
User Interface / Web Layer – cont.                               Add @Controller annotation is a must                     ...
Resources                                 —  Spring – www.springframework.org—  J2EE without EJB – Rod Johnson / Jurgen ...
Upcoming SlideShare
Loading in …5
×

NIG 系統開發指引

1,441 views

Published on

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

NIG 系統開發指引

  1. 1. NIG ALBERT KUOALBERT_KUO@CHT.COM.TW
  2. 2. Agenda — —  Web Application Layering—  Spring MVC Application Layers—  Resources
  3. 3. 15C 24H (If+Schema 23H VB/Cobol Any)Document
  4. 4. 15C/23H/24H trunkSDSdeliverableSchema Document trunkSDSschemaindex.htmlVB trunkSDSsource codeclient[ ]Cobol trunkSDSsource codeserver
  5. 5. Web Application Layering Crosscutting Aspects Business Persistence UI Layer Layer LayerSpring MVC Spring IoC JPA Spring AOP DataSource / Application Transaction DAO Classes Connection Context Mgmt. Pool JPA SessionJSP, tiles.xml Mgmt. Query Language Business Service Classes Domain Model Business Objects
  6. 6. Spring MVC Application Layers User Interface Domain Model Web AOP Business/Service Persistence
  7. 7. Spring MVC Application Layers NIG
  8. 8. Spring MVC Application Layers NIG – cont.
  9. 9. Business / Service Layer Add @Service annotation is a must 1 Create manager interface 2 Create manager implementation Your business logic will be defined in manager implementation class Declare the DAOs you will use in this function and add @Autowired annotation
  10. 10. Persistence Layer Daoand domain class had beengenerated via code generator.You may need to add findXXX method in dao class
  11. 11. Spring MVC Architecture Spring NIG005Controller request Dispatcher Servlet NIG010Controller NIG015Controller NIG020Controller response View NIGXXXController Apache Tiles
  12. 12. User Interface / Web Layer Spring NIG005Controller request Dispatcher Servlet NIG010Controller NIG015Controller NIG020Controller response View NIGXXXController Apache Tiles1 Create NIGxxxW.jsp2 Create nig.nigxxxw.js3 Update jsp file path to header.jsp4 Update file path to tiles-front.xml5 Create NIGxxxController.java6 Create NIGxxxDataBean.java
  13. 13. User Interface / Web Layer – cont. Add @Controller annotation is a must Autowired manager interface
  14. 14. Resources —  Spring – www.springframework.org—  J2EE without EJB – Rod Johnson / Jurgen Hoeller—  Better, Faster, Lighter Java – Bruce Tate—  Spring in action – Craig Walls with Ryan Breidenbach—  Wiring your Web Application with Open Source Java http:// www.onjava.com/pub/a/onjava/2004/04/07/ wiringwebapps.html

×