58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
server:
|
||
port: 8080
|
||
|
||
|
||
spring:
|
||
application:
|
||
name: metis
|
||
profiles:
|
||
active: dev
|
||
|
||
# MyBatis Plus 配置
|
||
mybatis-plus:
|
||
global-config:
|
||
# 关闭MP3.0自带的banner
|
||
banner: false
|
||
db-config:
|
||
#主键类型 0:"数据库ID自增", 1:"不操作", 2:"用户输入ID",3:"数字型snowflake", 4:"全局唯一ID UUID", 5:"字符串型snowflake";
|
||
id-type: 3
|
||
#字段策略
|
||
insert-strategy: not_null
|
||
update-strategy: not_null
|
||
select-strategy: not_null
|
||
#驼峰下划线转换
|
||
table-underline: true
|
||
logic-delete-field: is_deleted # 全局逻辑删除字段名
|
||
logic-delete-value: 1 # 逻辑已删除值
|
||
logic-not-delete-value: 0 # 逻辑未删除值
|
||
configuration:
|
||
map-underscore-to-camel-case: true
|
||
cache-enabled: false
|
||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||
|
||
springdoc:
|
||
swagger-ui:
|
||
tags-sorter: alpha
|
||
group-configs:
|
||
- group: bis
|
||
display-name: "业务接口文档"
|
||
paths-to-match: '/**'
|
||
packages-to-scan: org.shi9.module.bis
|
||
- group: system
|
||
display-name: "系统接口文档"
|
||
paths-to-match: '/**'
|
||
packages-to-scan: com.metis.controller
|
||
default-flat-param-object: true
|
||
knife4j:
|
||
# 开启增强配置
|
||
enable: true
|
||
# 开启生产环境屏蔽(如果是生产环境,需要把下面配置设置true)
|
||
# production: true
|
||
setting:
|
||
language: zh_cn
|
||
swagger-model-name: 实体类列表
|
||
basic: # 开始授权认证
|
||
enable: true
|
||
username: admin
|
||
password: 123456
|