application.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. server:
  2. port: 8001
  3. eureka:
  4. client:
  5. serviceUrl:
  6. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  7. spring:
  8. application:
  9. name: auth-server
  10. datasource:
  11. name: test
  12. url: jdbc:mysql://120.26.238.168:3306/mec_dev?useUnicode=true&characterEncoding=UTF8
  13. username: mec_dev
  14. password: mec_dev
  15. # 使用druid数据源
  16. type: com.alibaba.druid.pool.DruidDataSource
  17. driver-class-name: com.mysql.cj.jdbc.Driver
  18. filters: stat
  19. maxActive: 20
  20. initialSize: 1
  21. maxWait: 60000
  22. minIdle: 1
  23. timeBetweenEvictionRunsMillis: 60000
  24. minEvictableIdleTimeMillis: 300000
  25. validationQuery: select 'x'
  26. testWhileIdle: true
  27. testOnBorrow: false
  28. testOnReturn: false
  29. poolPreparedStatements: true
  30. maxOpenPreparedStatements: 20
  31. redis:
  32. host: 120.26.238.168
  33. port: 6379
  34. password: ehjinrong
  35. database: 0
  36. #连接超时时间(毫秒)
  37. timeout: 10000
  38. pool:
  39. #连接池最大连接数(使用负值表示没有限制)
  40. max-active: 10
  41. #连接池最大阻塞等待时间(使用负值表示没有限制)
  42. max-wait: -1
  43. #连接池中的最大空闲连接
  44. max-idle: 10
  45. #连接池中的最小空闲连接
  46. min-idle: 0
  47. mybatis:
  48. mapperLocations: classpath:config/mybatis/*.xml
  49. swagger:
  50. base-package: com.ym.mec.auth.controller
  51. #spring boot admin 相关配置
  52. management:
  53. endpoints:
  54. web:
  55. exposure:
  56. include: "*"
  57. endpoint:
  58. health:
  59. show-details: ALWAYS
  60. system:
  61. #客户端配置
  62. client:
  63. clients[0]:
  64. clientId: lvhaibao
  65. clientSecret: 123456
  66. clients[1]:
  67. clientId: lhb
  68. clientSecret: 123456
  69. clients[2]:
  70. clientId: app
  71. clientSecret: app
  72. social:
  73. qq:
  74. app-id: xxxx
  75. app-secret: xxxx
  76. providerId: callback.do
  77. filterProcessesUrl: /qqLogin
  78. weixin:
  79. app-id: xxxx
  80. app-secret: xxxxx