application.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. spring:
  2. application:
  3. name: dashboard
  4. profiles:
  5. active: dev
  6. # Servlet 配置
  7. servlet:
  8. # 文件上传相关配置项
  9. multipart:
  10. max-file-size: 16MB # 单个文件大小
  11. max-request-size: 32MB # 设置总上传的文件大小
  12. # Jackson 配置项
  13. jackson:
  14. serialization:
  15. write-dates-as-timestamps: true # 设置 Date 的格式,使用时间戳
  16. write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401
  17. write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
  18. fail-on-empty-beans: false # 允许序列化无属性的 Bean
  19. # MyBatis Plus 的配置项
  20. mybatis-plus:
  21. configuration:
  22. map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
  23. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 打印日志
  24. global-config:
  25. db-config:
  26. id-type: AUTO # 自增 ID
  27. logic-delete-value: 1 # 逻辑已删除值(默认为 1)
  28. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  29. mapper-locations: classpath*:mapper/*.xml
  30. type-aliases-package: ${yudao.info.base-package}.modules.*.dal.dataobject