server: port: 8084 spring: application: name: backend # 视频上传配置 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: root # Redis配置 data: redis: host: localhost port: 6379 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 # 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 api-docs: path: /v3/api-docs group-configs: - group: '默认' paths-to-match: '/**'