You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.3 KiB

3 years ago
3 years ago
  1. # Tomcat
  2. server:
  3. servlet:
  4. session:
  5. timeout: -1
  6. tomcat:
  7. uri-encoding: UTF-8
  8. max-threads: 1000
  9. min-spare-threads: 30
  10. port: 9300
  11. connection-timeout: 5000ms
  12. spring:
  13. application:
  14. name: xujie-pms
  15. cloud:
  16. nacos:
  17. discovery:
  18. server-addr: 192.168.1.83:8848
  19. resources:
  20. cache:
  21. cachecontrol:
  22. max-age: 0
  23. chain:
  24. cache: false
  25. # 环境 dev|test|prod
  26. profiles:
  27. active: dev
  28. freemarker:
  29. suffix: .ftl
  30. cache: false
  31. #template-loader-path: '${user.dir}/templates' #外部页面设置
  32. settings:
  33. number_format: '0.##' #格式化数字, 无小数
  34. # jackson时间格式化
  35. jackson:
  36. time-zone: GMT+8
  37. date-format: yyyy-MM-dd HH:mm:ss
  38. servlet:
  39. multipart:
  40. max-file-size: 100MB
  41. max-request-size: 100MB
  42. enabled: true
  43. redis:
  44. open: false # 是否开启redis缓存 true开启 false关闭
  45. database: 0
  46. host: 192.168.1.83
  47. port: 6379
  48. password: xujieredis # 密码(默认为空)
  49. timeout: 6000ms # 连接超时时长(毫秒)
  50. jedis:
  51. pool:
  52. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  53. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  54. max-idle: 10 # 连接池中的最大空闲连接
  55. min-idle: 5 # 连接池中的最小空闲连接
  56. mvc:
  57. throw-exception-if-no-handler-found: true
  58. # resources:
  59. # add-mappings: false
  60. #mybatis
  61. mybatis-plus:
  62. mapper-locations: classpath:/mapper/**/*.xml
  63. #实体扫描,多个package用逗号或者分号分隔
  64. typeAliasesPackage: com.xujie.pms.entity,com.xujie.pms.data
  65. global-config:
  66. #数据库相关配置
  67. db-config:
  68. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  69. id-type: AUTO
  70. # 逻辑删除配置
  71. logic-delete-value: -1
  72. logic-not-delete-value: 0
  73. # 启动或关闭 控制台logo
  74. banner: false
  75. #原生配置
  76. configuration:
  77. map-underscore-to-camel-case: true
  78. cache-enabled: false
  79. call-setters-on-nulls: true
  80. jdbc-type-for-null: 'null'
  81. logging:
  82. level:
  83. com.xujie.sys: debug
  84. org.springframework.jdbc.core.JdbcTemplate: DEBUG