diff --git a/order/order-service-impl/src/main/resources/config/application.yaml b/order/order-service-impl/src/main/resources/config/application.yaml index a60232b1b..7a190c48a 100644 --- a/order/order-service-impl/src/main/resources/config/application.yaml +++ b/order/order-service-impl/src/main/resources/config/application.yaml @@ -7,7 +7,7 @@ spring: password: ${MALL_MYSQL_PASSWORD} # mybatis -mybatis: +#mybatis: # config-location: classpath:mybatis-config.xml # mapper-locations: classpath:mapper/*.xml # type-aliases-package: cn.iocoder.mall.order.biz.dataobject @@ -21,6 +21,7 @@ mybatis-plus: id-type: auto mapper-locations: classpath*:mapper/*.xml type-aliases-package: cn.iocoder.mall.order.biz.dataobject + config-location: classpath:mybatis-config.xml # dubbo dubbo: diff --git a/promotion/promotion-service-impl/src/main/resources/config/application.yaml b/promotion/promotion-service-impl/src/main/resources/config/application.yaml index 0d7dfd6e7..8694fcf5f 100644 --- a/promotion/promotion-service-impl/src/main/resources/config/application.yaml +++ b/promotion/promotion-service-impl/src/main/resources/config/application.yaml @@ -26,7 +26,7 @@ mybatis-plus: id-type: auto mapper-locations: classpath*:mapper/*.xml type-aliases-package: cn.iocoder.mall.promotion.biz.dataobject - + config-location: classpath:mybatis-config.xml # dubbo dubbo: application: diff --git a/user/user-service-impl/src/main/resources/config/application.yaml b/user/user-service-impl/src/main/resources/config/application.yaml index 8d8573feb..515785456 100644 --- a/user/user-service-impl/src/main/resources/config/application.yaml +++ b/user/user-service-impl/src/main/resources/config/application.yaml @@ -7,19 +7,18 @@ spring: password: ${MALL_MYSQL_PASSWORD} # mybatis -mybatis: - config-location: classpath:mybatis-config.xml - mapper-locations: classpath:mapper/*.xml - type-aliases-package: cn.iocoder.mall.user.biz.dataobject +#mybatis: +# config-location: classpath:mybatis-config.xml +# mapper-locations: classpath:mapper/*.xml +# type-aliases-package: cn.iocoder.mall.user.biz.dataobject # mybatis-plus -#mybatis-plus: -# configuration: -# mapUnderscoreToCamelCase: true # 虽然默认为 true ,但是还是显示去指定下。 -# mapperLocations: classpath*:mapper/*.xml -# typeAliasesPackage: cn.iocoder.mall.user.biz.dataobject -# mapper-locations: classpath*:mapper/*.xml -# type-aliases-package: cn.iocoder.mall.user.biz.dataobject +mybatis-plus: + configuration: + mapUnderscoreToCamelCase: true # 虽然默认为 true ,但是还是显示去指定下。 + mapperLocations: classpath*:mapper/*.xml + typeAliasesPackage: cn.iocoder.mall.user.biz.dataobject + config-location: classpath:mybatis-config.xml # dubbo dubbo: