perf: 仅在 dev 环境生成接口文档

This commit is contained in:
xiongxiaoyang
2022-09-01 09:50:36 +08:00
parent 3dc7ed59a1
commit 87fdd2e6fc
3 changed files with 35 additions and 10 deletions

View File

@ -184,6 +184,11 @@ management:
# 关闭 elasticsearch 的健康检查
enabled: false
--- #--------------------接口文档配置---------------------------
springdoc:
api-docs:
enabled: false
--- #---------------------自定义配置----------------------------
novel:
# 跨域配置
@ -214,6 +219,9 @@ spring:
config:
activate:
on-profile: dev
springdoc:
api-docs:
enabled: true
--- #------------------- test 特定配置--------------------------
spring: