功能:简化配置文件,将配置迁移到Nacos
功能:简化本地应用配置文件 - 创建Nacos配置文件:消息中心.yaml、rabbitmq.yaml、datasource.yaml、mybatis-plus.yaml、日志ging.yaml - 添加Nacos配置上传说明文档
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# MyBatis-Plus配置
|
||||
mybatis-plus:
|
||||
# Mapper XML文件位置
|
||||
mapper-locations: classpath:mapper/*.xml
|
||||
# 实体类包路径
|
||||
type-aliases-package: com.xiaowang.messagehub.entity
|
||||
# MyBatis核心配置
|
||||
configuration:
|
||||
# 开启驼峰命名转换
|
||||
map-underscore-to-camel-case: true
|
||||
# 使用Log4j2作为日志实现
|
||||
log-impl: org.apache.ibatis.logging.log4j2.Log4j2Impl
|
||||
# MyBatis-Plus全局配置
|
||||
global-config:
|
||||
# 数据库配置
|
||||
db-config:
|
||||
# 主键类型:auto-数据库自增
|
||||
id-type: auto
|
||||
# 逻辑删除字段名
|
||||
logic-delete-field: deleted
|
||||
# 逻辑删除值(已删除)
|
||||
logic-delete-value: 1
|
||||
# 逻辑未删除值(未删除)
|
||||
logic-not-delete-value: 0
|
||||
Reference in New Issue
Block a user