application.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. spring:
  2. application:
  3. name: jnpf-datareport
  4. profiles:
  5. # 指定环境配置 dev(开发环境-默认)、test(测试环境)、preview(预生产环境)、prod(生产环境)
  6. active: dev
  7. servlet:
  8. multipart: #文件传输配置
  9. max-file-size: 100MB #单个数据大小限制
  10. max-request-size: 100MB #请求总数据大小限制
  11. enabled: true #是否启用分段上传支持
  12. mvc:
  13. hiddenmethod: #隐式方法过滤器
  14. filter:
  15. enabled: true #默认开启。开启以支持:PUT,DELETE表单提交方法
  16. jackson: #序列化和反序列化json框架
  17. serialization:
  18. write-dates-as-timestamps: true #是否写入日期时间时间戳格式
  19. time-zone: GMT+8 #指定日期格式化时区
  20. main:
  21. allow-bean-definition-overriding: true #允许同名bean后者覆盖,默认:true
  22. allow-circular-references: true #允许Bean相互引用,默认:false
  23. config:
  24. #===================== 访问域名 =====================
  25. WebAnnexFilePath: WebAnnexFile
  26. DataBackupFilePath: DataBackupFile
  27. TemporaryFilePath: TemporaryFile
  28. SystemFilePath: SystemFile
  29. TemplateFilePath: TemplateFile
  30. EmailFilePath: EmailFile
  31. DocumentFilePath: DocumentFile
  32. DocumentPreviewPath: DocumentPreview
  33. UserAvatarFilePath: UserAvatar
  34. IMContentFilePath: IMContentFile
  35. MPMaterialFilePath: MPMaterial
  36. TemplateCodePath: TemplateCode
  37. BiVisualPath: BiVisualPath
  38. ApiDomain: http://127.0.0.1:30000 #主项目后端域名(文档预览中使用)
  39. FrontDomain: http://127.0.0.1:3100 #前端域名(文档预览中使用)
  40. AppDomain: http://127.0.0.1:8080 #app/h5端域名配置(文档预览中使用)
  41. #===================== 多租户 =====================
  42. MultiTenancy: false #是否开启
  43. MultiTenancyUrl: http://127.0.0.1:30006/api/tenant/DbName/ #多租户项目地址
  44. # 接口放行地址 与GatewayWhite中的默认URL合并
  45. gateway:
  46. # 禁止访问接口
  47. block-url:
  48. ## 配置示例
  49. #- /api/message/Notice
  50. #- /api/permission/Users/*
  51. # 不验证Token, 放行接口(默认记录日志)
  52. white-url:
  53. # # 配置示例
  54. #- /api/message/Notice
  55. #- /api/permission/Users/*
  56. # 放行接口(不记录日志)
  57. exclude-url:
  58. # # 配置示例
  59. #- /api/message/Notice
  60. #- /api/permission/Users/*
  61. # 入站IP(禁止配置以外的IP访问block-url配置的接口)
  62. white-ip:
  63. #- 192.168.0.10
  64. #- 192.168.0.20
  65. # 日志配置
  66. logging:
  67. config: classpath:logback-spring.xml
  68. level:
  69. #自定义第三方包名日志等级
  70. # 解除注释后Druid连接池打印SQL语句
  71. druid.sql.Statement: debug
  72. # druid.sql.DataSource: debug
  73. # druid.sql.Connection: debug
  74. # druid.sql.ResultSet: debug
  75. log:
  76. level:
  77. # 等级 TRACE,DEBUG,INFO,WARN,ERROR(不区分大小写)
  78. root: info
  79. path: log/${spring.application.name}