后端demo
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.

83 lines
2.2 KiB

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