use mybatis-plus config

This commit is contained in:
Autorun 2019-05-15 15:13:54 +08:00
parent 55e988d299
commit f05ad4d8b0
3 changed files with 13 additions and 13 deletions

View File

@ -7,7 +7,7 @@ spring:
password: ${MALL_MYSQL_PASSWORD} password: ${MALL_MYSQL_PASSWORD}
# 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 # type-aliases-package: cn.iocoder.mall.order.biz.dataobject
@ -21,6 +21,7 @@ mybatis-plus:
id-type: auto id-type: auto
mapper-locations: classpath*:mapper/*.xml mapper-locations: classpath*:mapper/*.xml
type-aliases-package: cn.iocoder.mall.order.biz.dataobject type-aliases-package: cn.iocoder.mall.order.biz.dataobject
config-location: classpath:mybatis-config.xml
# dubbo # dubbo
dubbo: dubbo:

View File

@ -26,7 +26,7 @@ mybatis-plus:
id-type: auto id-type: auto
mapper-locations: classpath*:mapper/*.xml mapper-locations: classpath*:mapper/*.xml
type-aliases-package: cn.iocoder.mall.promotion.biz.dataobject type-aliases-package: cn.iocoder.mall.promotion.biz.dataobject
config-location: classpath:mybatis-config.xml
# dubbo # dubbo
dubbo: dubbo:
application: application:

View File

@ -7,19 +7,18 @@ spring:
password: ${MALL_MYSQL_PASSWORD} password: ${MALL_MYSQL_PASSWORD}
# 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.user.biz.dataobject # type-aliases-package: cn.iocoder.mall.user.biz.dataobject
# mybatis-plus # mybatis-plus
#mybatis-plus: mybatis-plus:
# configuration: configuration:
# mapUnderscoreToCamelCase: true # 虽然默认为 true ,但是还是显示去指定下。 mapUnderscoreToCamelCase: true # 虽然默认为 true ,但是还是显示去指定下。
# mapperLocations: classpath*:mapper/*.xml mapperLocations: classpath*:mapper/*.xml
# typeAliasesPackage: cn.iocoder.mall.user.biz.dataobject typeAliasesPackage: cn.iocoder.mall.user.biz.dataobject
# mapper-locations: classpath*:mapper/*.xml config-location: classpath:mybatis-config.xml
# type-aliases-package: cn.iocoder.mall.user.biz.dataobject
# dubbo # dubbo
dubbo: dubbo: