Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Spring Lab

Spring Lab

LeoNguyen.com

July 11, 2013
Tweet

More Decks by LeoNguyen.com

Other Decks in Programming

Transcript

  1. Spring Lab leonguyen.com

  2. Features - Purpose: An open source Spring solution - GUI:

    ZK + jQuery - Technology: Spring + Hibernate + MongoDB + API - Architechture: Thin Front-end, Fat Back-end
  3. Modules - Box: 1) Finance: JARS 2) Customer: SWO, Lean

    Startup, CRM 3) Internal Process: Intranet, Scrum-Agile, 5W-1H-2C-5M 4) Learning & Growth: HRM, 6 Hats, PERMA, Branding- Advertising
  4. Layout - Portal

  5. Spring Core

  6. JDK 7

  7. Download & Install - Go to: http://www.oracle. com/technetwork/java/javase/downloads/jdk7-downloads- 1880260.html

  8. Apache Tomcat 7

  9. Download & Install - Go to: http://tomcat.apache.org/download-70.cgi

  10. Spring Framework 3

  11. Download - Go to http://www.springsource.org/spring-community-download

  12. Spring Tool Suite

  13. Download - Go to: http://www.springsource.org/downloads/sts-ggts

  14. Hello world MVC

  15. New Spring Template Project - Go to File > New

    > Spring Template Project
  16. New Spring MVC Project - Choose Spring MVC Project

  17. Run It - Go to Run As > Run on

    Server
  18. DB

  19. DB List 1) Jars (ja): Income (Inc), Nec, Ltss, Edu,

    Ffa, Play, Give 2) Customer (c), Contact, Deal, Contract (ct) Swot (swot): Object (obj), S, W, O, T 3) Project (p), Task (ta) Employee (e), Payroll (pa) 4) Hat (ha): Object (obj), Objective (ob), Intuitive (in), Negative (ne), Positive (po), Creative (cre), Process (pro)
  20. Table List 2) c: cId, cNo, cName, cDesc u: uId,

    [cId-eId], uName, uPass, uEmail ct: ctId, cId, ctNo, ctDate, ctDesc 3) p: pId, pTitle, pDesc t: tId, pId, tTitle, tDesc e: eId, eNo, eName, eDesc
  21. Github - Go to: https://github.com/leonguyen/springSolution

  22. Eclipse Java EE

  23. Download - Go to: http://www.eclipse.org/downloads/

  24. Maven

  25. JDK and JAVA_HOME - JAVA_HOME variable is added in Windows

    environment variable, and point to the JDK folder.
  26. Download & Extract - Go to http://maven.apache.org/download.cgi - Extract to

    <Source Path>\maven
  27. MAVEN_HOME - MAVEN_HOME variable is added in Windows environment variable,

    and point to the Maven folder.
  28. Add PATH with MAVEN_HOME - Update PATH variable in Windows

    environment with string '% MAVEN_HOME%\bin'
  29. Verification - In command prompt, type “mvn –version“

  30. Maven repository - Edit 'settings.xml' in '<Source Maven>\conf'

  31. Generate project structure with Maven - In command prompt, type

    “mvn archetype:generate - DgroupId=com.springsolution.core -DartifactId=springSolution - DarchetypeArtifactId=maven-archetype-quickstart - DinteractiveMode=false"
  32. Convert to Eclipse project - In command prompt, type “mvn

    eclipse:eclipse"
  33. Add PATH with JUNIT_HOME - Update PATH variable in Windows

    environment with string '% JUNIT_HOME%D:\ProjectJava\junit.jar'
  34. Add Spring libs to Eclipse

  35. Add Spring 3 dependency - Edit 'pom.xml'

  36. Spring bean - Add 'HelloWorld.java'

  37. Spring bean configuration file - Create a Spring configuration file

    'SpringBeans.xml'
  38. Review project structure

  39. Run It