bootstrap.yaml 835 B

1234567891011121314151617181920212223242526
  1. server:
  2. port: 9001
  3. spring:
  4. application:
  5. name: iot-auth
  6. profiles:
  7. active: test
  8. # Servlet 配置
  9. servlet:
  10. # 文件上传相关配置项
  11. multipart:
  12. max-file-size: 16MB # 单个文件大小
  13. max-request-size: 32MB # 设置总上传的文件大小
  14. # Jackson 配置项
  15. jackson:
  16. serialization:
  17. write-dates-as-timestamps: true # 设置 LocalDateTime 的格式,使用时间戳
  18. write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401
  19. write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
  20. fail-on-empty-beans: false # 允许序列化无属性的 Bean
  21. pagehelper:
  22. helperDialect: mysql
  23. reasonable: true
  24. supportMethodsArguments: true
  25. params: count=countSql