application.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #spring:
  2. # profiles:
  3. # active: dev
  4. #服务器配置
  5. server:
  6. port: 8000
  7. undertow:
  8. threads:
  9. # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
  10. io: 16
  11. # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
  12. worker: 400
  13. # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
  14. buffer-size: 1024
  15. # 是否分配的直接内存
  16. direct-buffers: true
  17. #knife4j配置
  18. knife4j:
  19. #启用
  20. enable: true
  21. #基础认证
  22. basic:
  23. enable: false
  24. #增强配置
  25. setting:
  26. enableSwaggerModels: true
  27. enableDocumentManage: true
  28. enableHost: false
  29. enableHostText: http://localhost
  30. enableRequestCache: true
  31. enableFilterMultipartApis: false
  32. enableFilterMultipartApiMethodType: POST
  33. language: zh-CN
  34. enableFooter: false
  35. enableFooterCustom: true
  36. footerCustomContent: Copyright © 2022 All Rights Reserved
  37. #swagger公共信息
  38. swagger:
  39. title: 接口文档系统
  40. description: 接口文档系统
  41. version: 3.0.1.RELEASE
  42. license:
  43. license-url:
  44. terms-of-service-url:
  45. contact:
  46. name:
  47. email:
  48. url:
  49. qdport:
  50. #token配置
  51. token:
  52. #是否有状态
  53. state: false
  54. #redis序列化方式
  55. redis:
  56. serializer-type: protostuff
  57. #权限关
  58. data-scope:
  59. enabled: false
  60. #接口配置
  61. api:
  62. #报文加密配置
  63. crypto:
  64. #启用报文加密配置
  65. enabled: false
  66. #使用AesUtil.genAesKey()生成
  67. aes-key: O2BEeIv399qHQNhD6aGW8R8DEj4bqHXm
  68. #使用DesUtil.genDesKey()生成
  69. des-key: jMVCBsFGDQr1USHo
  70. #jackson配置
  71. jackson:
  72. #null自动转空值
  73. null-to-empty: true
  74. #大数字自动转字符串
  75. big-num-to-string: true
  76. #支持text文本请求,与报文加密同时开启
  77. support-text-plain: false
  78. #xss配置
  79. xss:
  80. enabled: true
  81. skip-url:
  82. - /qdport-chat/weixin
  83. #多租户配置
  84. tenant:
  85. #多租户增强
  86. enhance: false
  87. #多租户授权保护
  88. license: false
  89. #动态数据源功能
  90. dynamic-datasource: false
  91. #动态数据源全局扫描
  92. dynamic-global: false
  93. #多租户字段名
  94. column: tenant_id
  95. #排除多租户逻辑
  96. exclude-tables:
  97. - t_user
  98. prop:
  99. user-table: t_sys_user
  100. # 新增用户和重置密码时的默认密码
  101. user:
  102. default-password: Qdport@2023!