mirror of https://gitee.com/xiaonuobase/snowy
🎨 application.yaml替换application.properties
parent
68eed708be
commit
56360738cc
|
@ -1,203 +0,0 @@
|
||||||
#########################################
|
|
||||||
# server configuration
|
|
||||||
#########################################
|
|
||||||
server.port=82
|
|
||||||
|
|
||||||
#########################################
|
|
||||||
# spring allow-circular-references
|
|
||||||
#########################################
|
|
||||||
spring.main.allow-circular-references=true
|
|
||||||
|
|
||||||
#########################################
|
|
||||||
# spring profiles configuration
|
|
||||||
#########################################
|
|
||||||
spring.profiles.active=local
|
|
||||||
#spring.profiles.active=test
|
|
||||||
#spring.profiles.active=prod
|
|
||||||
|
|
||||||
#########################################
|
|
||||||
# multipart configuration
|
|
||||||
#########################################
|
|
||||||
spring.servlet.multipart.max-request-size=100MB
|
|
||||||
spring.servlet.multipart.max-file-size=100MB
|
|
||||||
|
|
||||||
#########################################
|
|
||||||
# datasource configuration
|
|
||||||
#########################################
|
|
||||||
|
|
||||||
# mysql
|
|
||||||
spring.datasource.dynamic.datasource.master.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
||||||
spring.datasource.dynamic.datasource.master.url=jdbc:mysql://localhost:3306/snowy?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&useInformationSchema=true&rewriteBatchedStatements=true
|
|
||||||
spring.datasource.dynamic.datasource.master.username=root
|
|
||||||
spring.datasource.dynamic.datasource.master.password=123456
|
|
||||||
spring.datasource.dynamic.strict=true
|
|
||||||
|
|
||||||
# postgres
|
|
||||||
#spring.datasource.dynamic.datasource.master.driver-class-name=org.postgresql.Driver
|
|
||||||
#spring.datasource.dynamic.datasource.master.url=jdbc:postgresql://localhost:5432/snowy
|
|
||||||
#spring.datasource.dynamic.datasource.master.username=postgres
|
|
||||||
#spring.datasource.dynamic.datasource.master.password=123456
|
|
||||||
#spring.datasource.dynamic.strict=true
|
|
||||||
|
|
||||||
# oracle
|
|
||||||
#spring.datasource.dynamic.datasource.master.driver-class-name=oracle.jdbc.OracleDriver
|
|
||||||
#spring.datasource.dynamic.datasource.master.url=jdbc:oracle:thin:@//127.0.0.1:1521/XE?remarksReporting=true
|
|
||||||
#spring.datasource.dynamic.datasource.master.username=SNOWY
|
|
||||||
#spring.datasource.dynamic.datasource.master.password=12345678
|
|
||||||
#spring.datasource.dynamic.strict=true
|
|
||||||
|
|
||||||
# mssql
|
|
||||||
#spring.datasource.dynamic.datasource.master.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
||||||
#spring.datasource.dynamic.datasource.master.url=jdbc:sqlserver://localhost:1433;DatabaseName=SNOWY
|
|
||||||
#spring.datasource.dynamic.datasource.master.username=sa
|
|
||||||
#spring.datasource.dynamic.datasource.master.password=123456
|
|
||||||
#spring.datasource.dynamic.strict=true
|
|
||||||
|
|
||||||
# dm database
|
|
||||||
#spring.datasource.dynamic.datasource.master.driver-class-name=dm.jdbc.driver.DmDriver
|
|
||||||
#spring.datasource.dynamic.datasource.master.url=jdbc:dm://localhost:5236/SYSDBA
|
|
||||||
#spring.datasource.dynamic.datasource.master.username=SYSDBA
|
|
||||||
#spring.datasource.dynamic.datasource.master.password=SYSDBA
|
|
||||||
#spring.datasource.dynamic.strict=true
|
|
||||||
|
|
||||||
# kingbase database
|
|
||||||
#spring.datasource.dynamic.datasource.master.driver-class-name=com.kingbase8.Driver
|
|
||||||
#spring.datasource.dynamic.datasource.master.url=jdbc:kingbase8://localhost:54321/snowy
|
|
||||||
#spring.datasource.dynamic.datasource.master.username=SYSTEM
|
|
||||||
#spring.datasource.dynamic.datasource.master.password=123456
|
|
||||||
#spring.datasource.dynamic.strict=true
|
|
||||||
|
|
||||||
# druid monitor configuration
|
|
||||||
spring.datasource.druid.stat-view-servlet.enabled=true
|
|
||||||
spring.datasource.druid.stat-view-servlet.login-username=admin
|
|
||||||
spring.datasource.druid.stat-view-servlet.login-password=123456
|
|
||||||
|
|
||||||
# druid global configuration
|
|
||||||
spring.datasource.dynamic.public-key=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMWiTVtdXFVrgFHDDKELZM0SywkWY3KjugN90eY5Sogon1j8Y0ClPF7nx3FuE7pAeBKiv7ChIS0vvx/59WUpKmUCAwEAAQ==
|
|
||||||
spring.datasource.dynamic.druid.initial-size=5
|
|
||||||
spring.datasource.dynamic.druid.max-active=20
|
|
||||||
spring.datasource.dynamic.druid.min-idle=5
|
|
||||||
spring.datasource.dynamic.druid.max-wait=60000
|
|
||||||
spring.datasource.dynamic.druid.pool-prepared-statements=true
|
|
||||||
spring.datasource.dynamic.druid.max-pool-prepared-statement-per-connection-size=20
|
|
||||||
spring.datasource.dynamic.druid.validation-query-timeout=2000
|
|
||||||
spring.datasource.dynamic.druid.test-on-borrow=false
|
|
||||||
spring.datasource.dynamic.druid.test-on-return=false
|
|
||||||
spring.datasource.dynamic.druid.test-while-idle=true
|
|
||||||
spring.datasource.dynamic.druid.time-between-eviction-runs-millis=60000
|
|
||||||
spring.datasource.dynamic.druid.min-evictable-idle-time-millis=300000
|
|
||||||
spring.datasource.dynamic.druid.filters=stat
|
|
||||||
spring.datasource.dynamic.druid.break-after-acquire-failure=false
|
|
||||||
|
|
||||||
#########################################
|
|
||||||
# jackson configuration
|
|
||||||
#########################################
|
|
||||||
spring.jackson.time-zone=GMT+8
|
|
||||||
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
|
|
||||||
spring.jackson.locale=zh_CN
|
|
||||||
spring.jackson.serialization.write-dates-as-timestamps=false
|
|
||||||
#########################################
|
|
||||||
# redis configuration
|
|
||||||
#########################################
|
|
||||||
spring.data.redis.database=1
|
|
||||||
spring.data.redis.host=127.0.0.1
|
|
||||||
spring.data.redis.port=6379
|
|
||||||
spring.data.redis.password=
|
|
||||||
spring.data.redis.timeout=10s
|
|
||||||
|
|
||||||
spring.data.redis.lettuce.pool.max-active=200
|
|
||||||
spring.data.redis.lettuce.pool.max-wait=-1ms
|
|
||||||
spring.data.redis.lettuce.pool.max-idle=10
|
|
||||||
spring.data.redis.lettuce.pool.min-idle=0
|
|
||||||
|
|
||||||
#########################################
|
|
||||||
# mybatis-plus configuration
|
|
||||||
#########################################
|
|
||||||
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
|
|
||||||
mybatis-plus.configuration.jdbc-type-for-null=null
|
|
||||||
mybatis-plus.global-config.banner=false
|
|
||||||
mybatis-plus.global-config.enable-sql-runner=true
|
|
||||||
mybatis-plus.global-config.db-config.id-type=ASSIGN_ID
|
|
||||||
mybatis-plus.global-config.db-config.logic-delete-field=DELETE_FLAG
|
|
||||||
mybatis-plus.global-config.db-config.logic-delete-value=DELETED
|
|
||||||
mybatis-plus.global-config.db-config.logic-not-delete-value=NOT_DELETE
|
|
||||||
mybatis-plus.mapper-locations=classpath*:vip/xiaonuo/**/mapping/*.xml
|
|
||||||
mybatis-plus.type-handlers-package=vip.xiaonuo.common.handler
|
|
||||||
|
|
||||||
#########################################
|
|
||||||
# easy-trans configuration
|
|
||||||
#########################################
|
|
||||||
easy-trans.is-enable-redis=true
|
|
||||||
easy-trans.is-enable-global=true
|
|
||||||
easy-trans.is-enable-tile=true
|
|
||||||
easy-trans.is-enable-cloud=false
|
|
||||||
|
|
||||||
#########################################
|
|
||||||
# sa-token configuration
|
|
||||||
#########################################
|
|
||||||
sa-token.token-name=token
|
|
||||||
sa-token.timeout=2592000
|
|
||||||
sa-token.active-timeout=-1
|
|
||||||
sa-token.is-concurrent=true
|
|
||||||
sa-token.is-share=false
|
|
||||||
sa-token.max-login-count=-1
|
|
||||||
sa-token.token-style=random-32
|
|
||||||
sa-token.is-log=false
|
|
||||||
sa-token.is-print=false
|
|
||||||
|
|
||||||
# sa-token alone-redis configuration
|
|
||||||
sa-token.alone-redis.database=2
|
|
||||||
sa-token.alone-redis.host=${spring.data.redis.host}
|
|
||||||
sa-token.alone-redis.port=${spring.data.redis.port}
|
|
||||||
sa-token.alone-redis.password=${spring.data.redis.password}
|
|
||||||
sa-token.alone-redis.timeout=${spring.data.redis.timeout}
|
|
||||||
sa-token.alone-redis.lettuce.pool.max-active=${spring.data.redis.lettuce.pool.max-active}
|
|
||||||
sa-token.alone-redis.lettuce.pool.max-wait=${spring.data.redis.lettuce.pool.max-wait}
|
|
||||||
sa-token.alone-redis.lettuce.pool.max-idle=${spring.data.redis.lettuce.pool.max-idle}
|
|
||||||
sa-token.alone-redis.lettuce.pool.min-idle=${spring.data.redis.lettuce.pool.min-idle}
|
|
||||||
|
|
||||||
#########################################
|
|
||||||
# knife4j configuration
|
|
||||||
#########################################
|
|
||||||
knife4j.enable=true
|
|
||||||
knife4j.production=false
|
|
||||||
knife4j.basic.enable=true
|
|
||||||
knife4j.basic.username=admin
|
|
||||||
knife4j.basic.password=123456
|
|
||||||
knife4j.setting.enableOpenApi=false
|
|
||||||
knife4j.setting.enableSwaggerModels=false
|
|
||||||
knife4j.setting.enableFooter=false
|
|
||||||
knife4j.setting.enableFooterCustom=true
|
|
||||||
knife4j.setting.footerCustomContent=Apache License 2.0 | Copyright 2020-2024[SNOWY](https://www.xiaonuo.vip)
|
|
||||||
springdoc.default-flat-param-object=true
|
|
||||||
|
|
||||||
# knife4j doc groups
|
|
||||||
springdoc.group-configs[0].group=SNOWY-PLUGIN-AUTH
|
|
||||||
springdoc.group-configs[0].display-name=${springdoc.group-configs[0].group}
|
|
||||||
springdoc.group-configs[0].packages-to-scan=vip.xiaonuo.auth
|
|
||||||
springdoc.group-configs[1].group=SNOWY-PLUGIN-BIZ
|
|
||||||
springdoc.group-configs[1].display-name=${springdoc.group-configs[1].group}
|
|
||||||
springdoc.group-configs[1].packages-to-scan=vip.xiaonuo.biz
|
|
||||||
springdoc.group-configs[2].group=SNOWY-PLUGIN-CLIENT
|
|
||||||
springdoc.group-configs[2].display-name=${springdoc.group-configs[2].group}
|
|
||||||
springdoc.group-configs[2].packages-to-scan=vip.xiaonuo.client
|
|
||||||
springdoc.group-configs[3].group=SNOWY-PLUGIN-DEV
|
|
||||||
springdoc.group-configs[3].display-name=${springdoc.group-configs[3].group}
|
|
||||||
springdoc.group-configs[3].packages-to-scan=vip.xiaonuo.dev
|
|
||||||
springdoc.group-configs[4].group=SNOWY-PLUGIN-GEN
|
|
||||||
springdoc.group-configs[4].display-name=${springdoc.group-configs[4].group}
|
|
||||||
springdoc.group-configs[4].packages-to-scan=vip.xiaonuo.gen
|
|
||||||
springdoc.group-configs[5].group=SNOWY-PLUGIN-MOBILE
|
|
||||||
springdoc.group-configs[5].display-name=${springdoc.group-configs[5].group}
|
|
||||||
springdoc.group-configs[5].packages-to-scan=vip.xiaonuo.mobile
|
|
||||||
springdoc.group-configs[6].group=SNOWY-PLUGIN-SYS
|
|
||||||
springdoc.group-configs[6].display-name=${springdoc.group-configs[6].group}
|
|
||||||
springdoc.group-configs[6].packages-to-scan=vip.xiaonuo.sys
|
|
||||||
|
|
||||||
#########################################
|
|
||||||
# snowy configuration
|
|
||||||
#########################################
|
|
||||||
|
|
||||||
# common configuration
|
|
||||||
snowy.config.common.front-url=http://localhost:81
|
|
||||||
snowy.config.common.backend-url=http://localhost:82
|
|
|
@ -0,0 +1,163 @@
|
||||||
|
server:
|
||||||
|
port: 82 # 服务端口
|
||||||
|
|
||||||
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: local # 本地环境
|
||||||
|
# active: test # 测试环境
|
||||||
|
# active: prod # 生产环境
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-request-size: 100MB # 定义单个HTTP请求的最大体积
|
||||||
|
max-file-size: 100MB # 定义单个上传文件的最大体积限制
|
||||||
|
main:
|
||||||
|
allow-circular-references: true # 允许循环引用
|
||||||
|
# jackson 配置
|
||||||
|
jackson:
|
||||||
|
time-zone: GMT+8
|
||||||
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
locale: zh_CN
|
||||||
|
serialization:
|
||||||
|
write-dates-as-timestamps: false
|
||||||
|
# 数据源相关配置
|
||||||
|
datasource:
|
||||||
|
dynamic:
|
||||||
|
datasource:
|
||||||
|
master: # 主数据源配置
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://localhost:3306/snowy?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&useInformationSchema=true&rewriteBatchedStatements=true
|
||||||
|
username: root
|
||||||
|
password: 123456
|
||||||
|
strict: true
|
||||||
|
public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMWiTVtdXFVrgFHDDKELZM0SywkWY3KjugN90eY5Sogon1j8Y0ClPF7nx3FuE7pAeBKiv7ChIS0vvx/59WUpKmUCAwEAAQ==
|
||||||
|
# Druid连接池参数(针对动态数据源)
|
||||||
|
druid:
|
||||||
|
initial-size: 5
|
||||||
|
max-active: 20
|
||||||
|
min-idle: 5
|
||||||
|
max-wait: 60000
|
||||||
|
pool-prepared-statements: true
|
||||||
|
max-pool-prepared-statement-per-connection-size: 20
|
||||||
|
validation-query-timeout: 2000
|
||||||
|
test-on-borrow: false
|
||||||
|
test-on-return: false
|
||||||
|
test-while-idle: true
|
||||||
|
time-between-eviction-runs-millis: 60000
|
||||||
|
min-evictable-idle-time-millis: 300000
|
||||||
|
filters: stat
|
||||||
|
break-after-acquire-failure: false
|
||||||
|
# Druid全局配置(监控界面)
|
||||||
|
druid:
|
||||||
|
stat-view-servlet:
|
||||||
|
enabled: true
|
||||||
|
login-username: admin
|
||||||
|
login-password: 123456
|
||||||
|
|
||||||
|
# redis 配置
|
||||||
|
data:
|
||||||
|
redis:
|
||||||
|
database: 1
|
||||||
|
host: 127.0.0.1
|
||||||
|
port: 6379
|
||||||
|
password:
|
||||||
|
timeout: 10s
|
||||||
|
lettuce:
|
||||||
|
pool:
|
||||||
|
max-active: 200
|
||||||
|
max-wait: -1ms
|
||||||
|
max-idle: 10
|
||||||
|
min-idle: 0
|
||||||
|
|
||||||
|
# mybatis-plus 配置
|
||||||
|
mybatis-plus:
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
jdbc-type-for-null: null
|
||||||
|
global-config:
|
||||||
|
banner: false
|
||||||
|
enable-sql-runner: true
|
||||||
|
db-config:
|
||||||
|
id-type: ASSIGN_ID
|
||||||
|
logic-delete-field: DELETE_FLAG
|
||||||
|
logic-delete-value: DELETED
|
||||||
|
logic-not-delete-value: NOT_DELETE
|
||||||
|
mapper-locations: classpath*:vip/xiaonuo/**/mapping/*.xml
|
||||||
|
type-handlers-package: vip.xiaonuo.common.handler
|
||||||
|
|
||||||
|
# easy-trans 配置
|
||||||
|
easy-trans:
|
||||||
|
is-enable-redis: true
|
||||||
|
is-enable-global: true
|
||||||
|
is-enable-tile: true
|
||||||
|
is-enable-cloud: false
|
||||||
|
|
||||||
|
# sa-token 配置
|
||||||
|
sa-token:
|
||||||
|
token-name: token
|
||||||
|
timeout: 2592000
|
||||||
|
active-timeout: -1
|
||||||
|
is-concurrent: true
|
||||||
|
is-share: false
|
||||||
|
max-login-count: -1
|
||||||
|
token-style: random-32
|
||||||
|
is-log: false
|
||||||
|
is-print: false
|
||||||
|
alone-redis:
|
||||||
|
database: 2
|
||||||
|
host: ${spring.data.redis.host}
|
||||||
|
port: ${spring.data.redis.port}
|
||||||
|
password: ${spring.data.redis.password}
|
||||||
|
timeout: ${spring.data.redis.timeout}
|
||||||
|
lettuce:
|
||||||
|
pool:
|
||||||
|
max-active: ${spring.data.redis.lettuce.pool.max-active}
|
||||||
|
max-wait: ${spring.data.redis.lettuce.pool.max-wait}
|
||||||
|
max-idle: ${spring.data.redis.lettuce.pool.max-idle}
|
||||||
|
min-idle: ${spring.data.redis.lettuce.pool.min-idle}
|
||||||
|
|
||||||
|
# knife4j 配置
|
||||||
|
knife4j:
|
||||||
|
enable: true
|
||||||
|
production: false
|
||||||
|
basic:
|
||||||
|
enable: true
|
||||||
|
username: admin
|
||||||
|
password: 123456
|
||||||
|
setting:
|
||||||
|
enableOpenApi: false
|
||||||
|
enableSwaggerModels: false
|
||||||
|
enableFooter: false
|
||||||
|
enableFooterCustom: true
|
||||||
|
footerCustomContent: Apache License 2.0 | Copyright 2020-2024[SNOWY](https://www.xiaonuo.vip)
|
||||||
|
|
||||||
|
springdoc:
|
||||||
|
default-flat-param-object: true
|
||||||
|
group-configs:
|
||||||
|
- group: SNOWY-PLUGIN-AUTH
|
||||||
|
display-name: SNOWY-PLUGIN-AUTH
|
||||||
|
packages-to-scan: vip.xiaonuo.auth
|
||||||
|
- group: SNOWY-PLUGIN-BIZ
|
||||||
|
display-name: SNOWY-PLUGIN-BIZ
|
||||||
|
packages-to-scan: vip.xiaonuo.biz
|
||||||
|
- group: SNOWY-PLUGIN-CLIENT
|
||||||
|
display-name: SNOWY-PLUGIN-CLIENT
|
||||||
|
packages-to-scan: vip.xiaonuo.client
|
||||||
|
- group: SNOWY-PLUGIN-DEV
|
||||||
|
display-name: SNOWY-PLUGIN-DEV
|
||||||
|
packages-to-scan: vip.xiaonuo.dev
|
||||||
|
- group: SNOWY-PLUGIN-GEN
|
||||||
|
display-name: SNOWY-PLUGIN-GEN
|
||||||
|
packages-to-scan: vip.xiaonuo.gen
|
||||||
|
- group: SNOWY-PLUGIN-MOBILE
|
||||||
|
display-name: SNOWY-PLUGIN-MOBILE
|
||||||
|
packages-to-scan: vip.xiaonuo.mobile
|
||||||
|
- group: SNOWY-PLUGIN-SYS
|
||||||
|
display-name: SNOWY-PLUGIN-SYS
|
||||||
|
packages-to-scan: vip.xiaonuo.sys
|
||||||
|
|
||||||
|
# snowy 配置
|
||||||
|
snowy:
|
||||||
|
config:
|
||||||
|
common:
|
||||||
|
front-url: http://localhost:${server.port}
|
||||||
|
backend-url: http://localhost:${server.port}
|
Loading…
Reference in New Issue