优化不联网

This commit is contained in:
zc
2026-03-17 15:17:42 +08:00
parent 61a18e781d
commit 50a1c03776
26 changed files with 175 additions and 331 deletions

View File

@@ -8,11 +8,17 @@ server:
# HTTP 端口(默认 6609
port: 6609
--- ### 排除自动配置
spring:
autoconfigure:
exclude:
- com.xkcoding.justauth.autoconfigure.JustAuthAutoConfiguration
--- ### 数据源配置
spring.datasource:
type: com.zaxxer.hikari.HikariDataSource
# 请务必提前创建好名为 wms_admin 的数据库,如果使用其他数据库名请注意同步修改 DB_NAME 配置
url: jdbc:p6spy:mysql://127.0.0.1:3306/wms?serverTimezone=Asia/Shanghai&useSSL=true&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&autoReconnect=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
url: jdbc:p6spy:mysql://127.0.0.1:3306/wms?serverTimezone=Asia/Shanghai&useSSL=false&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&autoReconnect=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
username: root
password: root
# PostgreSQL 配置
@@ -55,9 +61,9 @@ spring.data:
# 密码(未设置密码时请注释掉)
# password: ${REDIS_PWD:redis2025}
# 数据库索引
database: ${REDIS_DB:1}
database: ${REDIS_DB:0}
# 连接超时时间
timeout: 10s
timeout: 5s
# 是否开启 SSL
ssl:
enabled: false
@@ -100,15 +106,7 @@ jetcache:
continew-starter.captcha:
## 行为验证码
behavior:
enabled: true
cache-type: REDIS
water-mark:
# 一分钟内接口请求次数限制开关默认0关闭开启后下方失败锁定配置才会生效
req-frequency-limit-enable: 0
# 一分钟内验证码最多失败次数限制默认5次
req-get-lock-limit: 5
# 一分钟内验证码最多失败次数限制达标后锁定时间默认300秒
req-get-lock-seconds: 300
enabled: false
## 图形验证码
graphic:
# 类型
@@ -160,6 +158,7 @@ continew-starter.web.cors:
# 配置允许跨域的响应头
exposed-headers: '*'
--- ### 接口文档配置
springdoc:
swagger-ui:
@@ -172,39 +171,39 @@ continew-starter.messaging.websocket:
# 配置允许跨域的域名
allowed-origins: '*'
--- ### 短信配置
sms:
# 从 YAML 读取配置
config-type: YAML
http-log: true
is-print: false
blends:
cloopen:
# 短信厂商
supplier: cloopen
base-url: https://app.cloopen.com:8883/2013-12-26
access-key-id: 你的Access Key
access-key-secret: 你的Access Key Secret
sdk-app-id: 你的应用ID
--- ### 短信配置(已禁用)
# sms:
# # 从 YAML 读取配置
# config-type: YAML
# http-log: true
# is-print: false
# blends:
# cloopen:
# # 短信厂商
# supplier: cloopen
# base-url: https://app.cloopen.com:8883/2013-12-26
# access-key-id: 你的Access Key
# access-key-secret: 你的Access Key Secret
# sdk-app-id: 你的应用ID
--- ### 邮件配置
spring.mail:
# 根据需要更换
host: smtp.126.com
port: 465
username: 你的邮箱
password: 你的邮箱授权码
properties:
mail:
smtp:
auth: true
socketFactory:
class: javax.net.ssl.SSLSocketFactory
port: 465
--- ### 邮件配置(已禁用)
# spring.mail:
# # 根据需要更换
# host: smtp.126.com
# port: 465
# username: 你的邮箱
# password: 你的邮箱授权码
# properties:
# mail:
# smtp:
# auth: true
# socketFactory:
# class: javax.net.ssl.SSLSocketFactory
# port: 465
--- ### Just Auth 配置
justauth:
enabled: true
enabled: false
type:
GITEE:
client-id: 5d271b7f638941812aaf8bfc2e2f08f06d6235ef934e0e39537e2364eb8452c4
@@ -325,22 +324,24 @@ snail-job:
# 队列容量
queueCapacity: 10000
uni:
url: http://wo-api.uni-ubi.com/
appKey: 7834BC94180542C6BFD7031B39266E6F
appSecret: 97386E6DCEFC4758810CC720DC669662
projectGuid: 114C2FC2EA0B4A848C5F9AF23400E6F9
# uni配置已禁用
# uni:
# url: http://wo-api.uni-ubi.com/
# appKey: 7834BC94180542C6BFD7031B39266E6F
# appSecret: 97386E6DCEFC4758810CC720DC669662
# projectGuid: 114C2FC2EA0B4A848C5F9AF23400E6F9
# Minio配置
minio:
url: http://81.68.71.142:9000
accessKey: admin
secretKey: JYadmin@1234
bucketName: employees
bucketName1: visitor
bucketName2: cars
bucketName3: others
gwurl: http://81.68.71.142:9000
# Minio配置(已禁用,使用本地存储)
# minio:
# url: http://81.68.71.142:9000
# accessKey: admin
# secretKey: JYadmin@1234
# bucketName: employees
# bucketName1: visitor
# bucketName2: cars
# bucketName3: others
# gwurl: http://81.68.71.142:9000
sdk:
upload: http://81.68.71.142:7701/
# sdk配置已禁用
# sdk:
# upload: http://81.68.71.142:7701/

View File

@@ -40,13 +40,8 @@ logging:
--- ### 链路跟踪配置
continew-starter.web:
trace:
enabled: true
enabled: false
trace-id-name: traceId
## TLog 配置
tlog:
enable-invoke-time-print: false
pattern: '[$spanId][$traceId]'
mdc-enable: false
--- ### 全局响应配置
continew-starter.web:
@@ -293,4 +288,4 @@ spring:
management.health:
mail:
# 关闭邮箱健康检查(邮箱配置错误或邮箱服务器不可用时,健康检查会报错)
enabled: false
enabled: false

View File

@@ -25,7 +25,7 @@
<!-- 输出日志到控制台 -->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
<charset>${LOG_CHARSET}</charset>
</encoder>
@@ -33,7 +33,7 @@
<!-- 输出日志到控制台(不带颜色) -->
<appender name="CONSOLE_PROD" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${FILE_LOG_PATTERN}</pattern>
<charset>${LOG_CHARSET}</charset>
</encoder>
@@ -52,14 +52,14 @@
<!-- 日志保留天数 -->
<maxHistory>${FILE_MAX_HISTORY}</maxHistory>
</rollingPolicy>
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${FILE_LOG_PATTERN}</pattern>
<charset>${LOG_CHARSET}</charset>
</encoder>
</appender>
<!-- 输出日志到文件(异步) -->
<appender name="ASYNC_FILE" class="com.yomahub.tlog.core.enhance.logback.async.AspectLogbackAsyncAppender">
<appender name="ASYNC_FILE" class="ch.qos.logback.classic.AsyncAppender">
<!-- 不丢失日志,默认:如果队列的 80% 已满,则会丢弃 TRACT、DEBUG、INFO 级别的日志 -->
<discardingThreshold>0</discardingThreshold>
<!-- 更改默认的队列的深度该值会影响性能默认256 -->
@@ -85,4 +85,4 @@
<!-- 日志保留天数(根据国家法律,网络运行状态、网络安全事件、个人敏感信息操作等相关记录,留存的日志不少于六个月,并且进行网络多机备份。) -->
<property name="FILE_MAX_HISTORY" value="180"/>
</springProfile>
</configuration>
</configuration>