Files
pigx/pigx-boot/src/main/resources/application-dev.yml
T
冷冷 c9d8c6a421 refactor(common-core): 新增通用配置 common-config , 简化 application配置
大部分情况下 common-config 一旦确定后续不修改,所以不需要写在 application 做一个简化

(cherry picked from commit 56f4b2fb915f3552e83ed4760772b13942ebd4d6)
2024-08-16 15:26:53 +08:00

39 lines
940 B
YAML

spring:
data:
redis:
host: pigx-redis
# 数据库相关配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: root
url: jdbc:mysql://pigx-mysql:3306/pigxx_boot?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
# 文件上传配置
file:
local:
enable: true
base-path: /Users/lengleng/Downloads/img
# 验证码配置
aj:
captcha:
water-mark: pig4cloud
# 登录报文加密根密钥 ,必须是16位
security:
encodeKey: pigxpigxpigxpigx
# 配置文件加密根密码
jasypt:
encryptor:
password: pigx
# swagger token url 配置
swagger:
token-url: ${swagger.gateway}/admin/oauth2/token