spring lab

39
Spring Lab leonguyen.com

Upload: leo-nguyen

Post on 17-May-2015

155 views

Category:

Technology


4 download

DESCRIPTION

Spring Lab http://leonguyen.com

TRANSCRIPT

Page 1: Spring Lab

Spring Lab

leonguyen.com

Page 2: Spring Lab

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

Page 3: Spring Lab

Modules- Box:1) Finance: JARS2) Customer: SWO, Lean Startup, CRM3) Internal Process: Intranet, Scrum-Agile, 5W-1H-2C-5M4) Learning & Growth: HRM, 6 Hats, PERMA, Branding-Advertising

Page 4: Spring Lab

Layout - Portal

Page 5: Spring Lab

Spring Core

Page 6: Spring Lab

JDK 7

Page 8: Spring Lab

Apache Tomcat 7

Page 9: Spring Lab

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

Page 10: Spring Lab

Spring Framework 3

Page 11: Spring Lab

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

Page 12: Spring Lab

Spring Tool Suite

Page 13: Spring Lab

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

Page 14: Spring Lab

Hello world MVC

Page 15: Spring Lab

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

Page 16: Spring Lab

New Spring MVC Project- Choose Spring MVC Project

Page 17: Spring Lab

Run It- Go to Run As > Run on Server

Page 18: Spring Lab

DB

Page 19: Spring Lab

DB List1) Jars (ja): Income (Inc), Nec, Ltss, Edu, Ffa, Play, Give2) Customer (c), Contact, Deal, Contract (ct)Swot (swot): Object (obj), S, W, O, T3) 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)

Page 20: Spring Lab

Table List2) c: cId, cNo, cName, cDescu: uId, [cId-eId], uName, uPass, uEmailct: ctId, cId, ctNo, ctDate, ctDesc3) p: pId, pTitle, pDesct: tId, pId, tTitle, tDesce: eId, eNo, eName, eDesc

Page 21: Spring Lab

Github

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

Page 22: Spring Lab

Eclipse Java EE

Page 23: Spring Lab

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

Page 24: Spring Lab

Maven

Page 25: Spring Lab

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

Page 26: Spring Lab

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

Page 27: Spring Lab

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

Page 28: Spring Lab

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

Page 29: Spring Lab

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

Page 30: Spring Lab

Maven repository

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

Page 31: Spring Lab

Generate project structure with Maven

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

Page 32: Spring Lab

Convert to Eclipse project

- In command prompt, type “mvn eclipse:eclipse"

Page 33: Spring Lab

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

Page 34: Spring Lab

Add Spring libs to Eclipse

Page 35: Spring Lab

Add Spring 3 dependency- Edit 'pom.xml'

Page 36: Spring Lab

Spring bean- Add 'HelloWorld.java'

Page 37: Spring Lab

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

Page 38: Spring Lab

Review project structure

Page 39: Spring Lab

Run It