application-template.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. server:
  2. port: 8009
  3. tomcat:
  4. accesslog:
  5. enabled: true
  6. buffered: true
  7. directory: /var/logs
  8. file-date-format: -yyyy-MM-dd
  9. pattern: common
  10. prefix: tomcat-task
  11. rename-on-rotate: false
  12. request-attributes-enabled: false
  13. rotate: true
  14. suffix: .log
  15. eureka:
  16. client:
  17. serviceUrl:
  18. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  19. instance:
  20. lease-renewal-interval-in-seconds: 5
  21. spring:
  22. application:
  23. name: task-server
  24. datasource:
  25. name: test
  26. url: jdbc:mysql://47.114.1.200:3306/mec_dev?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  27. username: mec_dev
  28. password: mec_dev
  29. # 使用druid数据源
  30. type: com.alibaba.druid.pool.DruidDataSource
  31. driver-class-name: com.mysql.cj.jdbc.Driver
  32. filters: stat
  33. maxActive: 20
  34. initialSize: 1
  35. maxWait: 60000
  36. minIdle: 1
  37. timeBetweenEvictionRunsMillis: 60000
  38. minEvictableIdleTimeMillis: 300000
  39. validationQuery: select 'x'
  40. testWhileIdle: true
  41. testOnBorrow: false
  42. testOnReturn: false
  43. poolPreparedStatements: true
  44. maxOpenPreparedStatements: 20
  45. redis:
  46. host: 47.114.1.200
  47. port: 6379
  48. password:
  49. database: 0
  50. #连接超时时间(毫秒)
  51. timeout: 10000
  52. pool:
  53. #连接池最大连接数(使用负值表示没有限制)
  54. max-active: 10
  55. #连接池最大阻塞等待时间(使用负值表示没有限制)
  56. max-wait: -1
  57. #连接池中的最大空闲连接
  58. max-idle: 10
  59. #连接池中的最小空闲连接
  60. min-idle: 0
  61. mybatis:
  62. mapperLocations: classpath:config/mybatis/*.xml
  63. task:
  64. configLocation: classpath:config/properties/quartz.properties
  65. autoStartup: true
  66. startupDelay: 30
  67. security:
  68. oauth2:
  69. client:
  70. client-id: app
  71. client-secret: app
  72. resource:
  73. token-info-uri: http://localhost:8001/oauth/check_token
  74. swagger:
  75. base-package: com.ym.mec.task.controller
  76. ribbon:
  77. ReadTimeout: 60000
  78. ConnectTimeout: 60000