build: swagger

This commit is contained in:
2025-04-07 21:16:24 +08:00
parent fedaf3ae04
commit 7cf545bf44
3 changed files with 85 additions and 15 deletions

View File

@@ -28,4 +28,30 @@ mybatis-plus:
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
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