- 添加 mybatis-plus 集成

This commit is contained in:
sin 2019-05-11 10:05:10 +08:00
parent 1ea9b245cf
commit ec2151c9ef
2 changed files with 17 additions and 2 deletions

View File

@ -94,6 +94,11 @@
<groupId>org.apache.dubbo</groupId> <groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId> <artifactId>dubbo-spring-boot-starter</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.mybatis.spring.boot</groupId> <groupId>org.mybatis.spring.boot</groupId>

View File

@ -8,8 +8,18 @@ spring:
# mybatis # mybatis
mybatis: mybatis:
config-location: classpath:mybatis-config.xml # config-location: classpath:mybatis-config.xml
mapper-locations: classpath:mapper/*.xml # mapper-locations: classpath:mapper/*.xml
# type-aliases-package: cn.iocoder.mall.order.biz.dataobject
#
# mybatis-plus
mybatis-plus:
configuration:
map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
global-config:
db-config:
id-type: auto
mapper-locations: classpath*:mapper/*.xml
type-aliases-package: cn.iocoder.mall.order.biz.dataobject type-aliases-package: cn.iocoder.mall.order.biz.dataobject
# dubbo # dubbo