application.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. spring:
  2. profiles:
  3. active: dev
  4. # Jackson 日期时间格式配置
  5. jackson:
  6. date-format: yyyy-MM-dd HH:mm:ss
  7. time-zone: Asia/Shanghai
  8. default-property-inclusion: non_null
  9. # 文件上传大小限制(内容管理视频上传用)
  10. servlet:
  11. multipart:
  12. max-file-size: 100MB
  13. max-request-size: 100MB
  14. server:
  15. port: 18888
  16. servlet:
  17. context-path: /api
  18. # ==================== MyBatis Plus 配置 ====================
  19. mybatis-plus:
  20. configuration:
  21. # 驼峰命名自动转换
  22. map-underscore-to-camel-case: true
  23. # 开启 SQL 打印(通过 SLF4J,日志中自动携带 requestId)
  24. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  25. # mapper.xml 位置
  26. mapper-locations: classpath:mapper/*.xml
  27. global-config:
  28. db-config:
  29. # 逻辑删除字段名
  30. logic-delete-field: deleted
  31. # 已删除的值
  32. logic-delete-value: 1
  33. # 未删除的值
  34. logic-not-delete-value: 0
  35. # 主键雪花算法策略
  36. id-type: assign_id
  37. # ==================== Token 鉴权配置 ====================
  38. auth:
  39. # 不需要 Token 鉴权的接口白名单(支持 Ant 风格路径匹配)
  40. # 登录、注册等公开接口在此配置,也可在 Controller 方法上使用 @NoAuth 注解
  41. white-list:
  42. - /api/auth/login
  43. - /api/auth/register
  44. - /api/actuator/**
  45. - /api/doc.html
  46. - /api/swagger-ui.html
  47. - /api/v2/api-docs
  48. - /api/swagger-resources/**
  49. - /api/webjars/**