Due to pneumonia, they can not advance back to school, and therefore can only be learned in the home. But I have to say the home is really warm haven, learning efficiency is too low. . . . .
He built himself a simple SSM framework, mainly to himself every time need to use the Internet to find some configuration files, depending on what the file is very troublesome. Although IDEA has been greatly simplifies these issues. But still very troublesome. So build yourself a simple framework SSM template for their own use at any time. Of course, the simple thing, is certainly very simple, but you can expand your thing. What we need, in this simple basic templates plus the line.
The entire project has been uploaded to GitHub, and you can download to use .
GitHub address : Simple_SSM .
Need to learn how to build their own, here recommend a blog, using IDEA + Maven build. Very detailed, but bloggers are distributed, and it may seem a bit more complex, about 30,000 words. But learning Well, after reading the blog, in accordance with their own structures or use my this simple framework, SSM framework of how to build quickly beginning.
IDEA detailed history of the most elegant integration of Maven + SSM framework
brief description of my framework.
First, the project directory structure:
1.1 part of the code file structure: (java folder)
File Structure 1.2 configuration file:
1.3 webapp file structure
Second, the configuration of the project description:
2.1 brief
The compiler
IntelliJ IDEA 2018.3.4 x64
Tomcat: 9.0.221
Mysql: 8.0.16
Introduction 2.2 Special points
2.2.1 Data Sources
Data source used is Ali
2.2.2 mybatis integration and spring
Here mybatis and integration of the spring, the corresponding packet scanned, there is no need mybatis mapping configuration files.
2.2.3 has dealt with the issue of hash
As well as the garbage problem, check whether the jsp file encoding format is UTF-8.
Third, the operating results
Because he was just short answer is to build a framework, I do not write a lot of code. Simply do a demonstration.
Four, PS
4.1
Uploaded to GitHub itself on the download again tried again. Found resource
folder is not its role, just an ordinary folder, resulting in the relevant configuration file can not be found.
Therefore needs its own re manually resource
changed resource root
.
Mouse to select the resource
folder, right.
At this idea you will automatically correspond to a respective matching profile.