springboot2.0 integration mybatis (Lite version)

springboot2.0 integration mybatis (Lite version)

Reference article

springboot1.5

https://blog.csdn.net/Winter_chen001/article/details/77249029

springboot2.0

https://segmentfault.com/a/1190000017211657
https://blog.csdn.net/qq_28410283/article/details/86700635
https://www.jianshu.com/p/df5af59fef43

My integration

Preview

Here Insert Picture Description
Here Insert Picture Description

Here Insert Picture Description

Source package

sb-mybatis1.0 (with basic pagination 2020-01-17) .7z- Blue played Download
sb-mybatis-giee warehouse

Common errors and solutions

EXCEPTIONAL MySql database

Abnormally MySql database, java.sql.SQLException: '?? й ??? × ¼Ê ±' The server time zone value is unrecognized or represents more than one time zone.
Solution: https: //www.cnblogs.com/godwithus /p/9788790.html

Use druid data sources are not compatible with springboot2.0

springboot1.5 configuration
https://blog.csdn.net/Winter_chen001/article/details/77249029

springboot: 1.5.6使用以下没有问题,sp2.0使用以下出现问题
        <!-- druid的starter --> 
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid-spring-boot-starter</artifactId>
            <version>1.1.0</version>
        </dependency>
报错
	springboot2.0应该使用
        <!-- druid的starter --> 
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid-spring-boot-starter</artifactId>
            <version>1.1.9</version>
        </dependency>	

Published 10 original articles · won praise 1 · views 500

Guess you like

Origin blog.csdn.net/weixin_45733134/article/details/104024435