| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- server:
- port: 8080
- spring:
- application:
- name: recycle-app-backend
-
- datasource:
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://localhost:3306/recycle_app?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
- username: root
- password: root # 请根据实际情况修改
-
- 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: recycle-app-jwt-secret-key-2024-very-long-secret
- expiration: 86400000 # 24小时
|