application-template.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. server:
  2. port: 8001
  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-auth
  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: auth-server
  24. datasource:
  25. name: test
  26. url: jdbc:mysql://120.26.238.168: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: 120.26.238.168
  47. port: 6379
  48. password: ehjinrong
  49. database: 0
  50. #连接超时时间(毫秒)
  51. timeout: 10000
  52. jedis:
  53. pool:
  54. #连接池最大连接数(使用负值表示没有限制)
  55. max-active: 10
  56. #连接池最大阻塞等待时间(使用负值表示没有限制)
  57. max-wait: -1
  58. #连接池中的最大空闲连接
  59. max-idle: 10
  60. #连接池中的最小空闲连接
  61. min-idle: 1
  62. mybatis:
  63. mapperLocations: classpath:config/mybatis/*.xml
  64. swagger:
  65. base-package: com.ym.mec.auth.web.controller
  66. #spring boot admin 相关配置
  67. management:
  68. endpoints:
  69. web:
  70. exposure:
  71. include: "*"
  72. endpoint:
  73. health:
  74. show-details: ALWAYS
  75. ribbon:
  76. ReadTimeout: 60000
  77. ConnectTimeout: 60000