2024-12-06 20:36:28 +08:00
|
|
|
|
server:
|
|
|
|
|
port: 8084
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
application:
|
|
|
|
|
name: backend
|
2024-12-08 15:43:59 +08:00
|
|
|
|
|
2024-12-20 14:14:26 +08:00
|
|
|
|
kafka:
|
|
|
|
|
bootstrap-servers: localhost:9092
|
|
|
|
|
consumer:
|
|
|
|
|
group-id: book-recommendation-group
|
|
|
|
|
auto-offset-reset: earliest
|
|
|
|
|
producer:
|
|
|
|
|
key-serializer: org.apache.kafka.common.serialization.StringSerializer
|
|
|
|
|
value-serializer: org.apache.kafka.common.serialization.StringSerializer
|
|
|
|
|
|
2024-12-08 15:43:59 +08:00
|
|
|
|
# 视频上传配置
|
|
|
|
|
servlet:
|
|
|
|
|
multipart:
|
2024-12-08 18:42:46 +08:00
|
|
|
|
max-file-size: 500MB
|
|
|
|
|
max-request-size: 500MB
|
2024-12-24 17:04:39 +08:00
|
|
|
|
|
2024-12-06 20:36:28 +08:00
|
|
|
|
# 数据库配置
|
|
|
|
|
datasource:
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
url: jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
|
|
|
|
username: root
|
2024-12-17 14:47:27 +08:00
|
|
|
|
password: 123456
|
2024-12-06 20:36:28 +08:00
|
|
|
|
|
|
|
|
|
# Redis配置
|
|
|
|
|
data:
|
|
|
|
|
redis:
|
|
|
|
|
host: localhost
|
2024-12-17 14:47:27 +08:00
|
|
|
|
port: 6380
|
2024-12-06 20:36:28 +08:00
|
|
|
|
password: 123456 # 如果有密码,请设置
|
|
|
|
|
database: 8
|
|
|
|
|
timeout: 10000
|
|
|
|
|
lettuce:
|
|
|
|
|
pool:
|
|
|
|
|
max-active: 8
|
|
|
|
|
max-wait: -1
|
|
|
|
|
max-idle: 8
|
|
|
|
|
min-idle: 0
|
|
|
|
|
|
|
|
|
|
# 邮件配置
|
|
|
|
|
mail:
|
|
|
|
|
host: smtp.163.com
|
|
|
|
|
protocol: smtp
|
|
|
|
|
default-encoding: UTF-8
|
|
|
|
|
username: 17653478621@163.com
|
|
|
|
|
password: NMRzfpuL6kbL4euT
|
|
|
|
|
test-connection: true
|
|
|
|
|
properties:
|
|
|
|
|
mail:
|
|
|
|
|
smtp:
|
|
|
|
|
auth: true
|
|
|
|
|
starttls:
|
|
|
|
|
enable: true
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
|
|
# SQL初始化配置
|
|
|
|
|
sql:
|
|
|
|
|
init:
|
|
|
|
|
mode: never # 禁用SQL初始化
|
|
|
|
|
|
|
|
|
|
# 自动配置排除
|
|
|
|
|
autoconfigure:
|
|
|
|
|
exclude:
|
|
|
|
|
- org.springframework.boot.autoconfigure.sql.init.SqlInitializationAutoConfiguration
|
|
|
|
|
|
2024-12-20 15:42:38 +08:00
|
|
|
|
profiles:
|
|
|
|
|
active: dev # 确保使用开发环境配置
|
|
|
|
|
|
2024-12-20 14:14:26 +08:00
|
|
|
|
# MyBatis-Plus配置
|
2024-12-17 14:47:27 +08:00
|
|
|
|
mybatis-plus:
|
|
|
|
|
global-config:
|
|
|
|
|
db-config:
|
|
|
|
|
id-type: auto
|
|
|
|
|
logic-delete-field: deleted
|
|
|
|
|
logic-delete-value: 1
|
|
|
|
|
logic-not-delete-value: 0
|
|
|
|
|
configuration:
|
|
|
|
|
map-underscore-to-camel-case: true
|
|
|
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
2024-12-06 20:36:28 +08:00
|
|
|
|
|
2024-12-08 15:28:12 +08:00
|
|
|
|
# JWT配置
|
2024-12-08 15:43:59 +08:00
|
|
|
|
jwt:
|
|
|
|
|
secret: javax.crypto.spec.SecretKeySpec@5884561.Guwan.javax.crypto.spec.SecretKeySpec@5884561
|
|
|
|
|
expiration: 86400000 # 24小时
|
2024-12-06 20:36:28 +08:00
|
|
|
|
|
2024-12-08 15:28:12 +08:00
|
|
|
|
# 阿里云配置
|
2024-12-08 15:43:59 +08:00
|
|
|
|
aliyun:
|
|
|
|
|
sms:
|
2024-12-07 19:41:47 +08:00
|
|
|
|
|
2024-12-08 15:28:12 +08:00
|
|
|
|
# MinIO配置
|
2024-12-08 15:43:59 +08:00
|
|
|
|
minio:
|
2024-12-08 15:28:12 +08:00
|
|
|
|
endpoint: http://localhost:9000
|
|
|
|
|
accessKey: admin
|
|
|
|
|
secretKey: admin123456
|
|
|
|
|
bucket:
|
|
|
|
|
files: files # 文件桶
|
|
|
|
|
images: images # 图片桶
|
2024-12-06 20:36:28 +08:00
|
|
|
|
|
2024-12-08 15:28:12 +08:00
|
|
|
|
# 文件上传配置
|
2024-12-08 15:43:59 +08:00
|
|
|
|
file:
|
2024-12-08 15:28:12 +08:00
|
|
|
|
upload:
|
2024-12-08 15:43:59 +08:00
|
|
|
|
path: D:/upload # Windows路径示例,根据实际情况修改
|
|
|
|
|
|
2024-12-08 15:28:12 +08:00
|
|
|
|
# Swagger配置
|
|
|
|
|
springdoc:
|
|
|
|
|
swagger-ui:
|
|
|
|
|
path: /swagger-ui.html
|
|
|
|
|
tags-sorter: alpha
|
|
|
|
|
operations-sorter: alpha
|
2024-12-08 15:45:59 +08:00
|
|
|
|
enabled: true
|
|
|
|
|
disable-swagger-default-url: true
|
2024-12-08 15:28:12 +08:00
|
|
|
|
api-docs:
|
|
|
|
|
path: /v3/api-docs
|
2024-12-08 15:45:59 +08:00
|
|
|
|
enabled: true
|
2024-12-08 15:28:12 +08:00
|
|
|
|
group-configs:
|
|
|
|
|
- group: '默认'
|
2024-12-08 15:45:59 +08:00
|
|
|
|
paths-to-match: '/**'
|
2024-12-08 18:42:46 +08:00
|
|
|
|
packages-to-scan: com.guwan.backend.controller
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config:
|
|
|
|
|
arcface-sdk:
|
|
|
|
|
version: 4.1
|
2024-12-09 22:22:26 +08:00
|
|
|
|
app-id: 5nPWymNAibvWTq6XPypUWxroyzjMScZ9RwVkDjCFgK32
|
|
|
|
|
sdk-key: 7dsPvanADtYAP1TiiiFjTsms2mAU85m5duVwHChhumyV
|
|
|
|
|
active-key: 86C1-11T1-K131-FJQU
|
|
|
|
|
active-file: 86C111T1K131FJQU.dat
|
2024-12-08 18:42:46 +08:00
|
|
|
|
detect-pool-size: 16
|
|
|
|
|
compare-pool-size: 16
|
|
|
|
|
rec-face-thd: 0.8
|
2024-12-08 18:55:52 +08:00
|
|
|
|
rec-id-thd: 0.5
|
|
|
|
|
|
|
|
|
|
# SRS配置
|
|
|
|
|
srs:
|
|
|
|
|
server:
|
2024-12-08 19:21:52 +08:00
|
|
|
|
url: http://localhost:1985 # SRS HTTP API地址
|
|
|
|
|
|
|
|
|
|
easy-es:
|
2024-12-09 22:22:26 +08:00
|
|
|
|
enable: true
|
|
|
|
|
address: localhost:9200
|
2024-12-08 19:21:52 +08:00
|
|
|
|
global-config:
|
|
|
|
|
process-index-mode: manual
|
|
|
|
|
print-dsl: true
|
|
|
|
|
distributed: false
|
2024-12-08 19:39:55 +08:00
|
|
|
|
response-log: true
|
2024-12-08 19:48:19 +08:00
|
|
|
|
db-config:
|
|
|
|
|
map-underscore-to-camel-case: true
|
2024-12-09 22:22:26 +08:00
|
|
|
|
index-prefix: product_
|
|
|
|
|
async-process: true
|
|
|
|
|
schema-update: true
|
|
|
|
|
max-connect-num: 50
|
|
|
|
|
connect-timeout: 5000
|
|
|
|
|
socket-timeout: 60000
|
2024-12-08 19:39:55 +08:00
|
|
|
|
|
|
|
|
|
netty:
|
|
|
|
|
danmaku:
|
|
|
|
|
port: 8085
|
|
|
|
|
chat:
|
|
|
|
|
port: 8086
|
|
|
|
|
stream:
|
|
|
|
|
port: 8087
|
|
|
|
|
heartbeat:
|
|
|
|
|
interval: 30
|
|
|
|
|
cluster:
|
2024-12-09 22:22:26 +08:00
|
|
|
|
nodes: localhost:8088,localhost:8089
|
|
|
|
|
|
|
|
|
|
go2rtc:
|
|
|
|
|
api:
|
2024-12-20 14:14:26 +08:00
|
|
|
|
url: http://localhost:1984 # Go2RTC API地址
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# DataSource Config
|
|
|
|
|
mongo-plus:
|
|
|
|
|
data:
|
|
|
|
|
mongodb:
|
|
|
|
|
host: 127.0.0.1 #ip
|
|
|
|
|
port: 27017 #端口
|
|
|
|
|
database: test #数据库名
|
|
|
|
|
username: #用户名,没有可不填(若账号中出现@,!等等符号,不需要再进行转码!!!)
|
|
|
|
|
password: #密码,同上(若密码中出现@,!等等符号,不需要再进行转码!!!)
|
|
|
|
|
authenticationDatabase: admin #验证数据库
|
|
|
|
|
connectTimeoutMS: 50000 #在超时之前等待连接打开的最长时间(以毫秒为单位)
|
|
|
|
|
|
2024-12-20 15:42:38 +08:00
|
|
|
|
# 日志配置
|
|
|
|
|
logging:
|
|
|
|
|
# 日志文件路径
|
|
|
|
|
file:
|
|
|
|
|
path: logs
|
|
|
|
|
name: logs/backend.log
|
|
|
|
|
enabled: true # 添加这个配置来控制是否写入文件
|
|
|
|
|
# 日志级别配置
|
|
|
|
|
level:
|
|
|
|
|
root: INFO
|
|
|
|
|
com.guwan.backend: DEBUG
|
|
|
|
|
org.springframework.web: INFO
|
|
|
|
|
org.hibernate: ERROR
|
|
|
|
|
# 日志格式配置
|
|
|
|
|
pattern:
|
|
|
|
|
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"
|
|
|
|
|
file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"
|
2024-12-23 22:26:39 +08:00
|
|
|
|
logstash:
|
|
|
|
|
host: localhost
|
2024-12-24 17:04:39 +08:00
|
|
|
|
port: 5044
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xxl:
|
|
|
|
|
job:
|
|
|
|
|
admin:
|
2025-01-11 15:10:13 +08:00
|
|
|
|
addresses: http://192.168.0.6:9001/xxl-job-admin
|
2024-12-24 17:04:39 +08:00
|
|
|
|
accessToken: GuwanTest
|
|
|
|
|
executor:
|
|
|
|
|
appname: xxl-job-executor-guwan
|
|
|
|
|
address: ""
|
|
|
|
|
ip:
|
|
|
|
|
port: 9999
|
|
|
|
|
logpath: logs/xxljob-logs
|
|
|
|
|
logretentiondays: 7
|
|
|
|
|
|
2024-12-27 16:06:20 +08:00
|
|
|
|
docker:
|
|
|
|
|
host: tcp://localhost:2375
|
|
|
|
|
api-version: 1.45
|