Spring + Mybatis + pageHelper + druid integrated source code sharing

springMvc + spring + Mybatis + pageHelper + druid 整合

Spring and druid integration, spring integration druid

Spring integrates with Mybatis, spring integrates Mybatis 

Mybatis and pageHelper integration, Mybatis integration pageHelper 

Mybatis and druid integration, Mybatis integration with druid

Mybatis and Universal Mapper integration, Mybatis Universal Mapper

Mybatis integrates  general Dao

================================

©Copyright Sweet Potato Yao March 16, 2018

http://fanshuyao.iteye.com/

 

 This framework is integrated using Maven to build, the Jdk version is JDK7, and the plug-in versions are as follows:

<spring.version>4.3.13.RELEASE</spring.version>
		
<mybatis.version>3.4.6</mybatis.version>
<mybatis.spring.version>1.3.1</mybatis.spring.version>
<mybatis.generator.version>1.3.6</mybatis.generator.version>
<pagehelper.version>5.1.2</pagehelper.version>
<mybatis.mapper.version>3.5.3</mybatis.mapper.version>

<druid.version>1.1.9</druid.version>
<mysql.version>5.1.45</mysql.version>

 

The framework has built-in Mybatis to automatically generate Mapper.xml, Java Bean, and Dao plug-ins, in the Java class: MybatisGenerator

The generated code can directly run the Java class. After running, F5 refreshes the project and generates it directly in the project. For the detailed configuration of the code generation, see: mybatis-mapper-generator.xml, and modify it according to your own needs.

 

 

See the attachment for the source code download: ssm-mapper-integrate the general mapper plugin.zip

 

Related articles are:

Mybatis integrates Universal Dao, Mybatis integrates Universal Mapper, MyBatis3.x integrates Universal Mapper3.5.x

http://fanshuyao.iteye.com/blog/2413143

 

Spring integrates Mybatis, spring4.x integrates Mybatis3.x

http://fanshuyao.iteye.com/blog/2413040

 

 mybatis generator configuration, Mybatis automatically generates file configuration, Mybatis automatically generates entity bean configuration

http://fanshuyao.iteye.com/blog/2412996

 

 

================================

©Copyright Sweet Potato Yao March 16, 2018

http://fanshuyao.iteye.com/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326193256&siteId=291194637