2.0重构版本
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.
 
 
 
 
 
 

65 lines
1.3 KiB

  1. smtweb:
  2. machine-id: 1
  3. file:
  4. local-path: /data/files/
  5. host: http://127.0.0.1
  6. url: http://127.0.0.1:8888/files/
  7. db:
  8. default:
  9. rule:
  10. prefix: _smt_
  11. replace: smt_
  12. server:
  13. port: 8888
  14. servlet:
  15. context-path: /
  16. feign:
  17. hystrix:
  18. enabled: false
  19. logging:
  20. level:
  21. root: INFO
  22. cc.smtweb: DEBUG
  23. spring:
  24. # 设置服务名
  25. application:
  26. name: smtweb_user
  27. main:
  28. allow-bean-definition-overriding: true
  29. banner-mode: console
  30. mvc:
  31. static-path-pattern: /static/**
  32. redis:
  33. host: 127.0.0.1
  34. port: 6379
  35. password:
  36. datasource:
  37. driver-class-name: com.mysql.cj.jdbc.Driver
  38. url: jdbc:mysql://127.0.0.1:3306/smt_user?useUnicode=true&characterEncoding=utf-8&useTimezone=true&serverTimezone=CTT&allowMultiQueries=true
  39. username: root
  40. password: 1681860
  41. # 连接池配置
  42. hikari:
  43. pool-name: HikariPool
  44. minimum-idle: 10
  45. maximum-pool-size: 100
  46. connection-timeout: 60000
  47. idle-timeout: 600000
  48. max-lifetime: 1800000
  49. servlet:
  50. multipart:
  51. max-file-size: 104857600000
  52. max-request-size: 10485760000000
  53. profiles:
  54. include: role
  55. cache:
  56. type: caffeine
  57. cache-names:
  58. - core
  59. caffeine:
  60. spec: maximumSize=1024,expireAfterWrite=2h