/SSM_Framework_Test

This is a test for integrating Spring+Struts+Mybatis framework for JavaWeb project

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

SSM_Framework_Test

This is a test project for integrating Spring+Struts+Mybatis framework for JavaWeb project.

---How to Run---


Basic Setup for IntelliJ Idea

1. Clone the git and import the project in to IntelliJ Idea(or use eclipse).

 

2. setup the basic configurations
  • add Web/WEB-INF/lib to library path screenshot_4

  • add modules Struts2,Spring,Web and give thier relevant config files (for spring-spring-config.xml ,for struts-struts.xml screenshot_5 screenshot_6

  • add TOMCAT libraries make them EXPORT screenshot_9

  • add Facets screenshot_7 screenshot_8

  • create Artifact in type of War Exploded screenshot_10

3.Setup the TomCat Run configurations

Create MySQL DB

1. create a database called struts and a user with username=struts1 & password=abc123 or just change the jdbc.properties username and password to root(so no need to create another user)

 

2. Transfer database privilages for newly created user

 

3. Run the Ant file build.xml in DATABASE folder

 

Mybatis Generator

1. Run the Ant build.xml file in project root

 

Compile & Build the project and Deploy the Artifact

screenshot_12

 

Others

  • i have added some comments so you will be able to understand what i did there

Resources

it was hard to find the resource for SSM framework, here's some reosurces found from chinese sites