Slide 1

Slide 1 text

Spring Lab leonguyen.com

Slide 2

Slide 2 text

Features - Purpose: An open source Spring solution - GUI: ZK + jQuery - Technology: Spring + Hibernate + MongoDB + API - Architechture: Thin Front-end, Fat Back-end

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

Layout - Portal

Slide 5

Slide 5 text

Spring Core

Slide 6

Slide 6 text

JDK 7

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

Apache Tomcat 7

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

Spring Framework 3

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

Spring Tool Suite

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

Hello world MVC

Slide 15

Slide 15 text

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

Slide 16

Slide 16 text

New Spring MVC Project - Choose Spring MVC Project

Slide 17

Slide 17 text

Run It - Go to Run As > Run on Server

Slide 18

Slide 18 text

DB

Slide 19

Slide 19 text

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)

Slide 20

Slide 20 text

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

Slide 21

Slide 21 text

Github - Go to: https://github.com/leonguyen/springSolution

Slide 22

Slide 22 text

Eclipse Java EE

Slide 23

Slide 23 text

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

Slide 24

Slide 24 text

Maven

Slide 25

Slide 25 text

JDK and JAVA_HOME - JAVA_HOME variable is added in Windows environment variable, and point to the JDK folder.

Slide 26

Slide 26 text

Download & Extract - Go to http://maven.apache.org/download.cgi - Extract to \maven

Slide 27

Slide 27 text

MAVEN_HOME - MAVEN_HOME variable is added in Windows environment variable, and point to the Maven folder.

Slide 28

Slide 28 text

Add PATH with MAVEN_HOME - Update PATH variable in Windows environment with string '% MAVEN_HOME%\bin'

Slide 29

Slide 29 text

Verification - In command prompt, type “mvn –version“

Slide 30

Slide 30 text

Maven repository - Edit 'settings.xml' in '\conf'

Slide 31

Slide 31 text

Generate project structure with Maven - In command prompt, type “mvn archetype:generate - DgroupId=com.springsolution.core -DartifactId=springSolution - DarchetypeArtifactId=maven-archetype-quickstart - DinteractiveMode=false"

Slide 32

Slide 32 text

Convert to Eclipse project - In command prompt, type “mvn eclipse:eclipse"

Slide 33

Slide 33 text

Add PATH with JUNIT_HOME - Update PATH variable in Windows environment with string '% JUNIT_HOME%D:\ProjectJava\junit.jar'

Slide 34

Slide 34 text

Add Spring libs to Eclipse

Slide 35

Slide 35 text

Add Spring 3 dependency - Edit 'pom.xml'

Slide 36

Slide 36 text

Spring bean - Add 'HelloWorld.java'

Slide 37

Slide 37 text

Spring bean configuration file - Create a Spring configuration file 'SpringBeans.xml'

Slide 38

Slide 38 text

Review project structure

Slide 39

Slide 39 text

Run It