| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- server:
- port: 8080
- spring:
- application:
- name: recycle-app-backend
-
- datasource:
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://localhost:3306/huanbao?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
- username: root
- password: your_password # 请替换为你的MySQL密码
-
- jackson:
- date-format: yyyy-MM-dd HH:mm:ss
- time-zone: Asia/Shanghai
- default-property-inclusion: non_null
-
- data:
- redis:
- host: localhost
- port: 6379
- database: 0
- # password: your_redis_password
- mybatis-plus:
- mapper-locations: classpath*:/mapper/**/*.xml
- type-aliases-package: com.recycle.entity
- 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
- # Knife4j配置 (Swagger 2)
- knife4j:
- enable: true
- setting:
- language: zh_cn
- enableSwaggerModels: true
- enableDocumentManage: true
- swaggerModelName: 实体类列表
- # JWT配置
- jwt:
- secret: your-jwt-secret-key # 请替换为你的JWT密钥(建议32位以上随机字符串)
- expiration: 86400000 # 24小时
- # DeepSeek AI配置
- ai:
- api:
- key: your-deepseek-api-key # 请替换为你的DeepSeek API Key,申请地址: https://platform.deepseek.com
- url: https://api.deepseek.com/v1/chat/completions
- model: deepseek-chat
|