https://github.com/namila007/ssm_framework_test
This is a test for integrating Spring+Struts+Mybatis framework for JavaWeb project
https://github.com/namila007/ssm_framework_test
java mybatis mybatis-generator spring spring-struts2-mybatis sql struts2 struts2-spring-mybatis webapplication
Last synced: 3 months ago
JSON representation
This is a test for integrating Spring+Struts+Mybatis framework for JavaWeb project
- Host: GitHub
- URL: https://github.com/namila007/ssm_framework_test
- Owner: namila007
- License: gpl-3.0
- Created: 2017-12-04T17:03:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-09T15:00:11.000Z (almost 8 years ago)
- Last Synced: 2025-03-04T19:39:28.342Z (8 months ago)
- Topics: java, mybatis, mybatis-generator, spring, spring-struts2-mybatis, sql, struts2, struts2-spring-mybatis, webapplication
- Language: Java
- Size: 29.4 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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

* add **modules** `Struts2,Spring,Web` and give thier relevant config files (for spring-`spring-config.xml` ,for struts-`struts.xml`


* add `TOMCAT libraries` make them **EXPORT**

* add **Facets**


* create **Artifact** in type of `War Exploded`

##### 3.Setup the TomCat Run configurations
* go to run configuration and add `Tomcat server>Local`
[Download Tomcat](https://tomcat.apache.org/download-80.cgi)

------
### 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

-----
#### 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
* [tutorial 1]( http://blog.csdn.net/lk7688535/article/details/51243753)
* [transaction tx method](http://blog.csdn.net/u012964143/article/details/43761509)
* [Maven version](http://blog.csdn.net/AC_great/article/details/47614273)