spring boot mybatis 配置 发表于 2019-03-18 | 更新于 2019-05-24 | 分类于 java , spring-cloud | 阅读次数: 12345678910111213141516171819202122232425262728293031#MYBATIS#---------------------------mybatis-plus-------------------------## mapper 位置mybatis-plus.mapper-locations=classpath:/mapper/*Mapper.xml#实体类扫描包#mybatis-plus.type-aliases-package=cn.wuxinvip.demo.entity#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";mybatis-plus.global-config.id-type=1#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"mybatis-plus.global-config.field-strategy=2#驼峰下划线转换mybatis-plus.global-config.db-column-underline=true#刷新mapper 调试神器,开发环境使用,部署环境必须关掉mybatis-plus.global-config.refresh-mapper=true#数据库大写下划线转换#mybatis-plus.global-config.capital-mode=true#序列接口实现类配置#mybatis-plus.global-config.key-generator=com.baomidou.springboot.xxx#逻辑删除配置#mybatis-plus.global-config.logic-delete-value=0#mybatis-plus.global-config.logic-not-delete-value=1#自定义填充策略接口实现#mybatis-plus.global-config.meta-object-handler=com.baomidou.springboot.xxx#自定义SQL注入器#mybatis-plus.global-config.sql-injector=com.baomidou.springboot.xxx#mybatis-plus.global-config.meta-object-handler=cn.wuxinvip.demo.base.ObjectHandler#下划线转驼峰mybatis-plus.configuration.map-underscore-to-camel-case=true# 缓存开关mybatis-plus.configuration.cache-enabled=false 相关文章 Reactor Core springboot logger 配置 feign ribbon 配置 zuul 熔断和重试 zuul 配置 赏了 微信支付 支付宝