chore:配置文件调整

feature/comment
yang 2024-12-31 15:12:59 +08:00
parent 10b3a4b0b3
commit 37b0e80892
3 changed files with 6 additions and 22 deletions

View File

@ -11,7 +11,6 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
* @author mcwl
*/
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@MapperScan(basePackages = "com.mcwl")
public class McWlApplication
{
public static void main(String[] args)

View File

@ -84,21 +84,3 @@ wechat:
# 应用密钥
secret: abbabcf1da711a3bbd95387ec83edcac
mybatis-plus:
# Mapper XML文件位置
mapper-locations: classpath*:mapper/**/*.xml
# 配置实体类所在的包名MyBatis-Plus会自动扫描并注册为别名
type-aliases-package: com.mcwl.**.domain
# 全局配置
global-config:
db-config:
# 主键生成策略
id-type: auto
# 开启驼峰命名规则转换
capital-mode: true
# 配置逻辑删除相关属性
logic-delete-field: del_flag
logic-delete-value: '2'
logic-not-delete-value: '0'
# 数据库字段下划线命名规则
table-underline: true

View File

@ -127,11 +127,14 @@ mybatis-plus:
dbConfig:
# 主键类型
# AUTO 自增 NONE 空 INPUT 用户输入 ASSIGN_ID 雪花 ASSIGN_UUID 唯一 UUID
idType: ASSIGN_ID
idType: auto
logic-delete-field: del_flag
# 逻辑已删除值
logicDeleteValue: 2
logicDeleteValue: '2'
# 逻辑未删除值
logicNotDeleteValue: 0
logicNotDeleteValue: '0'
# 数据库字段下划线命名规则
table-underline: true
# 字段验证策略之 insert,在 insert 的时候的字段验证策略
# IGNORED 忽略 NOT_NULL 非NULL NOT_EMPTY 非空 DEFAULT 默认 NEVER 不加入 SQL
insertStrategy: NOT_NULL