- The added line is THIS COLOR.
- The deleted line is THIS COLOR.
#contents
*Prerequisite [#w8c1c256]
-Java SDK installation
-Maven installation (You can refer [[Overall/Maven]])
-Eclipse installation (You can refer [[Overall/Eclipse]])
-Tomcat installation
-MySQL installation (You can refer [[Overall/MySQL]])
-MySQL Workbench
*Install&Setup [#z64157ea]
:Step.1|
Create Maven project.
$ mkdir <project>
$ cd <project>
$ mvn archetype:generate -DgroupId=org.osssv -DartifactId=sample -DinteractiveMode=false -DarchetypeArtifactid=maven-archetype-quickstart
:Step.2|Import existing maven project from Eclipse.
*HowToUse [#w969428d]
**Prepare sprint framework [#h1b6c914]
:Step.1|
Remove unnecessary source code such as App.java and AppTest.java.
:Step.2|
Edit POM.xml.
:Step.3|
Create Source Folder for "src/main/resources".
:Step.4|
Create spring-context.xml in src/main/resources.
**Create Database [#j191e21a]
:Step.1|
Launch MySQL Workbench
:Step.2|
Connect Database
:Step.3|
Create new model for DB schema and tables.
**Create necessary packages [#gb284228]
:Step.1|
Create entity and entity.impl package in main directories.
:Step.2|
Create service and service.impl package in main and test directories.
**Create interfaces [#e6678c55]
:Step.1|
Create User interface in entity package.
:Step.2|
Create UserService interface in service package.
**Create classes [#gc8b3c0a]
:Step.1|
Create User class in entity.impl package.
:Step.2|
Create UserService class in service.impl package.
**Create test classes [#m9c28314]
:Step.1|
Create TestUserService class in src/test/java
*Author [#o431d1bf]
S.Yatsuzuka