SSM simple template framework

  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:

Here Insert Picture Description

1.1 part of the code file structure: (java folder)

Here Insert Picture Description

File Structure 1.2 configuration file:

Here Insert Picture Description

1.3 webapp file structure

Here Insert Picture Description

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
Here Insert Picture Description

2.2.2 mybatis integration and spring

Here Insert Picture Description
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

Here Insert Picture Description
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.
Here Insert Picture Description
Here Insert Picture Description

Four, PS

4.1

Uploaded to GitHub itself on the download again tried again. Found resourcefolder is not its role, just an ordinary folder, resulting in the relevant configuration file can not be found.
Therefore needs its own re manually resourcechanged resource root.
Here Insert Picture Description
Mouse to select the resourcefolder, right.
Here Insert Picture Description
Here Insert Picture Description
At this idea you will automatically correspond to a respective matching profile.

Published 32 original articles · won praise 10 · views 3668

Guess you like

Origin blog.csdn.net/H1517043456/article/details/104264426