【代码优化】全局:去除 application.yaml 相关配置文件的冗余

This commit is contained in:
YunaiV
2024-07-20 16:12:55 +08:00
parent e18069d45f
commit a034b3d218
44 changed files with 94 additions and 201 deletions

View File

@@ -64,8 +64,12 @@ public class SocialClientServiceImpl implements SocialClientService {
/**
* 小程序版本
*
* 1. release正式版
* 2. trial体验版
* 3. developer开发版
*/
@Value("${yudao.wxa-code.env-version}")
@Value("${yudao.wxa-code.env-version:release}")
public String envVersion;
@Resource

View File

@@ -154,14 +154,7 @@ wx:
# 芋道配置项,设置当前项目所有自定义的配置
yudao:
xss:
enable: false
exclude-urls: # 如下两个 url仅仅是为了演示去掉配置也没关系
- ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
- ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
demo: true # 开启演示模式
wxa-code:
env-version: release # 小程序版本: 正式版为 "release";体验版为 "trial";开发版为 "develop"
justauth:
enabled: true

View File

@@ -177,14 +177,8 @@ yudao:
enable: false # 本地环境,暂时关闭图片验证码,方便登录等接口的测试
security:
mock-enable: true
xss:
enable: false
exclude-urls: # 如下两个 url仅仅是为了演示去掉配置也没关系
- ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
- ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
access-log: # 访问日志的配置项
enable: false
demo: false # 关闭演示模式
wxa-code:
env-version: develop # 小程序版本: 正式版为 "release";体验版为 "trial";开发版为 "develop"

View File

@@ -154,15 +154,14 @@ yudao:
web:
admin-ui:
url: http://dashboard.yudao.iocoder.cn # Admin 管理后台 UI 的地址
xss:
enable: false
exclude-urls: # 如下 url仅仅是为了演示去掉配置也没关系
- ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
swagger:
title: 管理后台
description: 提供管理员管理的所有功能
version: ${yudao.info.version}
base-package: ${yudao.info.base-package}
captcha:
enable: true # 验证码的开关,默认为 true
wxa-code:
env-version: release # 小程序版本: 正式版为 "release";体验版为 "trial";开发版为 "develop"。默认为 release
tenant: # 多租户相关配置项
enable: true
ignore-urls: