server: port: 8084 spring: application: name: backend 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 # 视频上传配置 servlet: multipart: max-file-size: 500MB max-request-size: 500MB # 数据库配置 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 password: 123456 # Redis配置 data: redis: host: localhost port: 6380 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 profiles: active: dev # 确保使用开发环境配置 # MyBatis-Plus配置 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 # JWT配置 jwt: secret: javax.crypto.spec.SecretKeySpec@5884561.Guwan.javax.crypto.spec.SecretKeySpec@5884561 expiration: 86400000 # 24小时 # 阿里云配置 aliyun: sms: # MinIO配置 minio: endpoint: http://localhost:9000 accessKey: admin secretKey: admin123456 bucket: files: files # 文件桶 images: images # 图片桶 # 文件上传配置 file: upload: path: D:/upload # Windows路径示例,根据实际情况修改 # Swagger配置 springdoc: swagger-ui: path: /swagger-ui.html tags-sorter: alpha operations-sorter: alpha enabled: true disable-swagger-default-url: true api-docs: path: /v3/api-docs enabled: true group-configs: - group: '默认' paths-to-match: '/**' packages-to-scan: com.guwan.backend.controller config: arcface-sdk: version: 4.1 app-id: 5nPWymNAibvWTq6XPypUWxroyzjMScZ9RwVkDjCFgK32 sdk-key: 7dsPvanADtYAP1TiiiFjTsms2mAU85m5duVwHChhumyV active-key: 86C1-11T1-K131-FJQU active-file: 86C111T1K131FJQU.dat detect-pool-size: 16 compare-pool-size: 16 rec-face-thd: 0.8 rec-id-thd: 0.5 # SRS配置 srs: server: url: http://localhost:1985 # SRS HTTP API地址 easy-es: enable: true address: localhost:9200 global-config: process-index-mode: manual print-dsl: true distributed: false response-log: true db-config: map-underscore-to-camel-case: true index-prefix: product_ async-process: true schema-update: true max-connect-num: 50 connect-timeout: 5000 socket-timeout: 60000 netty: danmaku: port: 8085 chat: port: 8086 stream: port: 8087 heartbeat: interval: 30 cluster: nodes: localhost:8088,localhost:8089 go2rtc: api: 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 #在超时之前等待连接打开的最长时间(以毫秒为单位) # 日志配置 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" logstash: host: localhost port: 5044 xxl: job: admin: addresses: http://192.168.0.6:9001/xxl-job-admin accessToken: GuwanTest executor: appname: xxl-job-executor-guwan address: "" ip: port: 9999 logpath: logs/xxljob-logs logretentiondays: 7 docker: host: tcp://localhost:2375 api-version: 1.45