【更新】启动配置调整

pull/269/head
chinaraind 2025-06-09 09:02:14 +08:00
parent 14a17ec977
commit 3a5ecac001
1 changed files with 2 additions and 25 deletions

View File

@ -3,76 +3,64 @@
######################################### #########################################
server.port=82 server.port=82
spring.application.name=snowy spring.application.name=snowy
######################################### #########################################
# spring allow-circular-references # spring allow-circular-references
######################################### #########################################
spring.main.allow-circular-references=true spring.main.allow-circular-references=true
######################################### #########################################
# spring profiles configuration # spring profiles configuration
######################################### #########################################
spring.profiles.active=local spring.profiles.active=local
#spring.profiles.active=test #spring.profiles.active=test
#spring.profiles.active=prod #spring.profiles.active=prod
######################################### #########################################
# multipart configuration # multipart configuration
######################################### #########################################
spring.servlet.multipart.max-request-size=100MB spring.servlet.multipart.max-request-size=100MB
spring.servlet.multipart.max-file-size=100MB spring.servlet.multipart.max-file-size=100MB
######################################### #########################################
# datasource configuration # datasource configuration
######################################### #########################################
# mysql # mysql
spring.datasource.dynamic.datasource.master.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.dynamic.datasource.master.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.dynamic.datasource.master.url=jdbc:mysql://localhost:3306/snowy3-gitee?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&useInformationSchema=true&rewriteBatchedStatements=true 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.username=root
spring.datasource.dynamic.datasource.master.password=123456 spring.datasource.dynamic.datasource.master.password=12345678
spring.datasource.dynamic.strict=true spring.datasource.dynamic.strict=true
# postgres # postgres
#spring.datasource.dynamic.datasource.master.driver-class-name=org.postgresql.Driver #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.url=jdbc:postgresql://localhost:5432/snowy
#spring.datasource.dynamic.datasource.master.username=postgres #spring.datasource.dynamic.datasource.master.username=postgres
#spring.datasource.dynamic.datasource.master.password=123456 #spring.datasource.dynamic.datasource.master.password=123456
#spring.datasource.dynamic.strict=true #spring.datasource.dynamic.strict=true
# oracle # oracle
#spring.datasource.dynamic.datasource.master.driver-class-name=oracle.jdbc.OracleDriver #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/ORCL?remarksReporting=true #spring.datasource.dynamic.datasource.master.url=jdbc:oracle:thin:@//127.0.0.1:1521/ORCL?remarksReporting=true
#spring.datasource.dynamic.datasource.master.username=SNOWY #spring.datasource.dynamic.datasource.master.username=SNOWY
#spring.datasource.dynamic.datasource.master.password=12345678 #spring.datasource.dynamic.datasource.master.password=12345678
#spring.datasource.dynamic.strict=true #spring.datasource.dynamic.strict=true
# mssql # mssql
#spring.datasource.dynamic.datasource.master.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver #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.url=jdbc:sqlserver://localhost:1433;DatabaseName=SNOWY
#spring.datasource.dynamic.datasource.master.username=sa #spring.datasource.dynamic.datasource.master.username=sa
#spring.datasource.dynamic.datasource.master.password=123456 #spring.datasource.dynamic.datasource.master.password=123456
#spring.datasource.dynamic.strict=true #spring.datasource.dynamic.strict=true
# dm database # dm database
#spring.datasource.dynamic.datasource.master.driver-class-name=dm.jdbc.driver.DmDriver #spring.datasource.dynamic.datasource.master.driver-class-name=dm.jdbc.driver.DmDriver
#spring.datasource.dynamic.datasource.master.url=jdbc:dm://localhost:5236/SNOWY #spring.datasource.dynamic.datasource.master.url=jdbc:dm://localhost:5236/SNOWY
#spring.datasource.dynamic.datasource.master.username=SYSDBA #spring.datasource.dynamic.datasource.master.username=SYSDBA
#spring.datasource.dynamic.datasource.master.password=SYSDBA #spring.datasource.dynamic.datasource.master.password=SYSDBA
#spring.datasource.dynamic.strict=true #spring.datasource.dynamic.strict=true
# kingbase database # kingbase database
#spring.datasource.dynamic.datasource.master.driver-class-name=com.kingbase8.Driver #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.url=jdbc:kingbase8://localhost:54321/snowy
#spring.datasource.dynamic.datasource.master.username=SYSTEM #spring.datasource.dynamic.datasource.master.username=SYSTEM
#spring.datasource.dynamic.datasource.master.password=123456 #spring.datasource.dynamic.datasource.master.password=123456
#spring.datasource.dynamic.strict=true #spring.datasource.dynamic.strict=true
# druid monitor configuration # druid monitor configuration
spring.datasource.druid.stat-view-servlet.enabled=true spring.datasource.druid.stat-view-servlet.enabled=true
spring.datasource.druid.stat-view-servlet.login-username=admin spring.datasource.druid.stat-view-servlet.login-username=admin
spring.datasource.druid.stat-view-servlet.login-password=123456 spring.datasource.druid.stat-view-servlet.login-password=123456
# druid global configuration # druid global configuration
spring.datasource.dynamic.public-key=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMWiTVtdXFVrgFHDDKELZM0SywkWY3KjugN90eY5Sogon1j8Y0ClPF7nx3FuE7pAeBKiv7ChIS0vvx/59WUpKmUCAwEAAQ== spring.datasource.dynamic.public-key=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMWiTVtdXFVrgFHDDKELZM0SywkWY3KjugN90eY5Sogon1j8Y0ClPF7nx3FuE7pAeBKiv7ChIS0vvx/59WUpKmUCAwEAAQ==
spring.datasource.dynamic.druid.initial-size=5 spring.datasource.dynamic.druid.initial-size=5
@ -90,7 +78,6 @@ spring.datasource.dynamic.druid.time-between-eviction-runs-millis=6000
spring.datasource.dynamic.druid.min-evictable-idle-time-millis=300000 spring.datasource.dynamic.druid.min-evictable-idle-time-millis=300000
spring.datasource.dynamic.druid.filters=stat spring.datasource.dynamic.druid.filters=stat
spring.datasource.dynamic.druid.break-after-acquire-failure=false spring.datasource.dynamic.druid.break-after-acquire-failure=false
######################################### #########################################
# jackson configuration # jackson configuration
######################################### #########################################
@ -106,12 +93,10 @@ spring.data.redis.host=127.0.0.1
spring.data.redis.port=6379 spring.data.redis.port=6379
spring.data.redis.password= spring.data.redis.password=
spring.data.redis.timeout=10s spring.data.redis.timeout=10s
spring.data.redis.lettuce.pool.max-active=200 spring.data.redis.lettuce.pool.max-active=200
spring.data.redis.lettuce.pool.max-wait=-1ms spring.data.redis.lettuce.pool.max-wait=-1ms
spring.data.redis.lettuce.pool.max-idle=10 spring.data.redis.lettuce.pool.max-idle=10
spring.data.redis.lettuce.pool.min-idle=0 spring.data.redis.lettuce.pool.min-idle=0
######################################### #########################################
# mybatis-plus configuration # mybatis-plus configuration
######################################### #########################################
@ -125,7 +110,6 @@ mybatis-plus.global-config.db-config.logic-delete-value=DELETED
mybatis-plus.global-config.db-config.logic-not-delete-value=NOT_DELETE mybatis-plus.global-config.db-config.logic-not-delete-value=NOT_DELETE
mybatis-plus.mapper-locations=classpath*:vip/xiaonuo/**/mapping/*.xml,com/bstek/**/mapping/*.xml mybatis-plus.mapper-locations=classpath*:vip/xiaonuo/**/mapping/*.xml,com/bstek/**/mapping/*.xml
mybatis-plus.type-handlers-package=vip.xiaonuo.common.handler mybatis-plus.type-handlers-package=vip.xiaonuo.common.handler
######################################### #########################################
# easy-trans configuration # easy-trans configuration
######################################### #########################################
@ -133,7 +117,6 @@ easy-trans.is-enable-redis=true
easy-trans.is-enable-global=true easy-trans.is-enable-global=true
easy-trans.is-enable-tile=true easy-trans.is-enable-tile=true
easy-trans.is-enable-cloud=false easy-trans.is-enable-cloud=false
######################################### #########################################
# sa-token configuration # sa-token configuration
######################################### #########################################
@ -146,7 +129,6 @@ sa-token.max-login-count=-1
sa-token.token-style=random-32 sa-token.token-style=random-32
sa-token.is-log=false sa-token.is-log=false
sa-token.is-print=false sa-token.is-print=false
# sa-token alone-redis configuration # sa-token alone-redis configuration
sa-token.alone-redis.database=2 sa-token.alone-redis.database=2
sa-token.alone-redis.host=${spring.data.redis.host} sa-token.alone-redis.host=${spring.data.redis.host}
@ -157,7 +139,6 @@ sa-token.alone-redis.lettuce.pool.max-active=${spring.data.redis.lettuce.pool.ma
sa-token.alone-redis.lettuce.pool.max-wait=${spring.data.redis.lettuce.pool.max-wait} 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.max-idle=${spring.data.redis.lettuce.pool.max-idle}
sa-token.alone-redis.lettuce.pool.min-idle=${spring.data.redis.lettuce.pool.min-idle} sa-token.alone-redis.lettuce.pool.min-idle=${spring.data.redis.lettuce.pool.min-idle}
######################################### #########################################
# knife4j configuration # knife4j configuration
######################################### #########################################
@ -172,7 +153,6 @@ knife4j.setting.enableFooter=false
knife4j.setting.enableFooterCustom=true knife4j.setting.enableFooterCustom=true
knife4j.setting.footerCustomContent=Apache License 2.0 | Copyright 2020-2024[SNOWY](https://www.xiaonuo.vip) knife4j.setting.footerCustomContent=Apache License 2.0 | Copyright 2020-2024[SNOWY](https://www.xiaonuo.vip)
springdoc.default-flat-param-object=true springdoc.default-flat-param-object=true
# knife4j doc groups # knife4j doc groups
springdoc.group-configs[0].group=SNOWY-PLUGIN-AUTH springdoc.group-configs[0].group=SNOWY-PLUGIN-AUTH
springdoc.group-configs[0].display-name=${springdoc.group-configs[0].group} springdoc.group-configs[0].display-name=${springdoc.group-configs[0].group}
@ -195,14 +175,11 @@ springdoc.group-configs[5].packages-to-scan=vip.xiaonuo.mobile
springdoc.group-configs[6].group=SNOWY-PLUGIN-SYS springdoc.group-configs[6].group=SNOWY-PLUGIN-SYS
springdoc.group-configs[6].display-name=${springdoc.group-configs[6].group} springdoc.group-configs[6].display-name=${springdoc.group-configs[6].group}
springdoc.group-configs[6].packages-to-scan=vip.xiaonuo.sys springdoc.group-configs[6].packages-to-scan=vip.xiaonuo.sys
######################################### #########################################
# snowy configuration # snowy configuration
######################################### #########################################
# common configuration # common configuration
snowy.config.common.backend-url=http://localhost:82 snowy.config.common.backend-url=http://localhost:82
# plugin dev-sms configuration # plugin dev-sms configuration
sms-oa.config-type=yaml sms-oa.config-type=yaml
sms-oa.core-pool-size=20 sms-oa.core-pool-size=20