#mybatis
mybatis-plus:
config-location: classpath:/xml/mybatis-config.xml
mapper-locations: classpath*:/xml/mapper/*Mapper.xml
#实体扫描,多个package用逗号或者分号分隔
typeAliasesPackage: com.xxx.oa.entity,com.xxx.oa.domain
global-config:
refresh: true
banner: false
# 数据库相关配置
db-config:
#主键类型 AUTO:“数据库ID自增”, INPUT:“用户输入ID”,ID_WORKER:“全局唯一ID (数字类型唯一ID)”, UUID:“全局唯一ID UUID”;
id-type: id_worker
#字段策略 IGNORED:“忽略判断”,NOT_NULL:“非 NULL 判断”),NOT_EMPTY:“非空判断”
field-strategy: NOT_NULL
#驼峰下划线转换
column-underline: true
#数据库大写下划线转换
#capital-mode: true
#逻辑删除配置
logic-delete-value: 1 #默认值1
logic-not-delete-value: 0 #默认值0
refresh-mapper: true
mybatis配置 ---实体包扫描
最新推荐文章于 2024-04-28 07:24:02 发布