boot代码

This commit is contained in:
2026-02-02 13:59:06 +08:00
parent f13ce7886d
commit cd88956a43
573 changed files with 43180 additions and 276 deletions

View File

@@ -3,9 +3,9 @@ spring:
data:
redis:
##redis 单机环境配置
host: 127.0.0.1
host: 192.168.1.4
port: 6379
password:
password: 123456
database: 0
ssl:
enabled: false
@@ -15,13 +15,14 @@ spring:
# commandTimeout: 5000
datasource:
# MySql
url: jdbc:mysql://localhost:3306/bladex_boot?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
username: root
password: root
# url: jdbc:mysql://localhost:3306/bladex_boot?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
# username: root
# password: root
# PostgreSQL
#url: jdbc:postgresql://127.0.0.1:5432/bladex_boot
#username: postgres
#password: 123456
url: jdbc:postgresql://192.168.1.4:5432/bladex_boot
username: postgres
password: postgres
driver-class-name: org.postgresql.Driver
# Oracle
#url: jdbc:oracle:thin:@//127.0.0.1:1521/ORCLPDB
#username: BLADEX_BOOT
@@ -48,25 +49,6 @@ social:
enabled: true
domain: http://127.0.0.1:2888
#oss默认配置
oss:
#开启oss配置
enabled: true
#开启oss类型
#minio、s3、qiniu、alioss、huaweiobs、tencentcos
name: minio
#租户模式
tenant-mode: true
#oss服务地址
endpoint: http://127.0.0.1:9000
#oss转换服务地址,用于内网上传后将返回地址改为转换的外网地址
transform-endpoint: http://localhost:9000
#访问key
access-key: bladexadmin
#密钥key
secret-key: bladexadmin
#存储桶
bucket-name: bladex
#blade配置
blade:
@@ -76,3 +58,41 @@ blade:
enabled: false
##redis服务地址
address: redis://127.0.0.1:6379
aliyun:
sms:
# 阿里云账号的AccessKey
accessKeyId: LTAI5t8BeHdexfRG1nJGiKJq
accessKeySecret: fXTJGks85ujS7NfbOvlV8jfDbwnSHx
# 区域,默认为杭州
regionId: cn-hangzhou
# 默认短信签名
signName: 速通互联验证平台
# 默认短信模板CODE
templateCode: 100001
endpoint: dypnsapi.aliyuncs.com
xxl:
job:
admin:
addresses: http://192.168.1.3:8999/yichayilu-job-boot
accessToken: yichayilu_token
executor:
appname: yichayilu-boot
address:
ip: 192.168.1.3
port: 9999
logpath: /Users/ray/dev/xxl-logs
logretentiondays: 30
oss:
enabled: true
name: alioss
tenant-mode: false
endpoint: https://oss-cn-zhangjiakou.aliyuncs.com
access-key: LTAI5tB6gdjNGfh4ijLhkbTE
secret-key: quGnzXst0GuopQAIIv8bUlYdzbVBhH
bucket-name: letfly

View File

@@ -1,6 +1,6 @@
#服务器配置
server:
port: 80
port: 8081
undertow:
threads:
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
@@ -170,9 +170,9 @@ blade:
#启用 oauth2
enabled: true
#使用 @org.springblade.test.Sm2KeyGenerator 获取,用于国密sm2验签,需和前端保持一致
public-key: ${BLADE_OAUTH2_PUBLIC_KEY}
public-key: 049a315b42a9fd789c321442185f0375fdd7686461fad1276e999a738700375ece22e8a343052ee6be0d1cba174adacaa875c4ffdd0a2b936df26c330f5815599a
#使用 @org.springblade.test.Sm2KeyGenerator 获取,用于国密sm2解密,前端无需配置
private-key: ${BLADE_OAUTH2_PRIVATE_KEY}
private-key: 3d3713f75f9d91583360388428693ddbebd480b8141414b59655a6e6bbbaec15
#token配置
token:
#是否有状态
@@ -182,15 +182,15 @@ blade:
#单用户登录范围
single-level: all
#token签名 使用 @org.springblade.test.SignKeyGenerator 获取
sign-key: ${BLADE_TOKEN_SIGN_KEY}
sign-key: IALpfRv4h0oTVL1fTfQbu9eAHDDyqTJR
#token加密 使用 @org.springblade.test.CryptoKeyGenerator 获取
crypto-key: ${BLADE_TOKEN_CRYPTO_KEY}
crypto-key: 6rOpi4jsUdL4UnBNheEPA8r7EmB34ffb
#超级密钥配置
key:
#启用超级密钥
enabled: false
#密钥加密 使用 @org.springblade.test.CryptoKeyGenerator 获取
crypto-key: ${BLADE_KEY_CRYPTO_KEY}
crypto-key: 6rOpi4jsUdL4UnBNheEPA8r7EmB34ffb
#接口配置
api:
#报文加密配置
@@ -198,9 +198,9 @@ blade:
#启用报文加密配置
enabled: false
#使用 @org.springblade.test.CryptoKeyGenerator 获取,需和前端保持一致
aes-key: ${BLADE_API_CRYPTO_AES_KEY}
aes-key: qKLWA1LbST0zIR7OR0lMBSlgoZoecOLP
#使用 @org.springblade.test.CryptoKeyGenerator 获取,需和前端保持一致
des-key: ${BLADE_API_CRYPTO_DES_KEY}
des-key: 3MPX3xvOp8cNJWpK
#jackson配置
jackson:
#null自动转空值
@@ -239,6 +239,10 @@ blade:
#接口放行
skip-url:
- /blade-test/**
- /formal-app/base/send-sms-code
- /formal-app/base/formal-app-privacy
- /formal-app/base/find-category
- /formal-app/base/spu-list
#授权认证配置
auth:
- method: ALL
@@ -278,6 +282,23 @@ blade:
- client-id: saber
path-patterns:
- /blade-saber/**
- client-id: ${appclient.formal.name}
path-patterns:
- /formal-app/customer/**
- /formal-app/mall/**
- /formal-app/order/**
- client-id: ${appclient.offline.name}
path-patterns:
- /offline-app/**
appclient:
formal:
name: appFormal
offline:
name: appOffline
#多租户配置
tenant:
#多租户增强
@@ -296,3 +317,13 @@ blade:
#分库分表配置
sharding:
enabled: false
oss:
enabled: true
name: alioss
tenant-mode: false
endpoint: https://oss-cn-zhangjiakou.aliyuncs.com
access-key: LTAI5tB6gdjNGfh4ijLhkbTE
secret-key: quGnzXst0GuopQAIIv8bUlYdzbVBhH
bucket-name: letfly