application.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. server:
  2. port: 8010
  3. eureka:
  4. client:
  5. serviceUrl:
  6. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  7. instance:
  8. lease-renewal-interval-in-seconds: 5
  9. spring:
  10. application:
  11. name: workflow-server
  12. datasource:
  13. name: test
  14. url: jdbc:mysql://47.114.1.200:3306/mec_dev?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  15. username: mec_dev
  16. password: mec_dev
  17. # 使用druid数据源
  18. type: com.alibaba.druid.pool.DruidDataSource
  19. driver-class-name: com.mysql.cj.jdbc.Driver
  20. filters: stat
  21. maxActive: 20
  22. initialSize: 1
  23. maxWait: 60000
  24. minIdle: 1
  25. timeBetweenEvictionRunsMillis: 60000
  26. minEvictableIdleTimeMillis: 300000
  27. validationQuery: select 'x'
  28. testWhileIdle: true
  29. testOnBorrow: false
  30. testOnReturn: false
  31. poolPreparedStatements: true
  32. maxOpenPreparedStatements: 20
  33. redis:
  34. host: 120.26.238.168
  35. port: 6379
  36. password: ehjinrong
  37. database: 0
  38. #连接超时时间(毫秒)
  39. timeout: 10000
  40. jedis:
  41. pool:
  42. #连接池最大连接数(使用负值表示没有限制)
  43. max-active: 10
  44. #连接池最大阻塞等待时间(使用负值表示没有限制)
  45. max-wait: -1
  46. #连接池中的最大空闲连接
  47. max-idle: 10
  48. #连接池中的最小空闲连接
  49. min-idle: 1
  50. mybatis:
  51. mapperLocations: classpath:config/mybatis/*.xml
  52. swagger:
  53. base-package: com.ym.mec.workflow.controller
  54. ##认证
  55. security:
  56. oauth2:
  57. client:
  58. client-id: app
  59. client-secret: app
  60. resource:
  61. token-info-uri: http://localhost:8001/oauth/check_token
  62. #spring boot admin 相关配置
  63. management:
  64. endpoints:
  65. web:
  66. exposure:
  67. include: "*"
  68. endpoint:
  69. health:
  70. show-details: ALWAYS
  71. ribbon:
  72. ReadTimeout: 60000
  73. ConnectTimeout: 60000