application.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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://47.114.176.40:3306/edu_saas?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  27. username: edu_saas
  28. password: dayaDataOnline@2019
  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.176.40
  47. port: 6379
  48. password: dyym
  49. database: 1
  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/config/*.xml
  64. swagger:
  65. base-package: 'com.keao.edu.auth.web.controller'
  66. base-path: /**
  67. #spring boot admin 相关配置
  68. management:
  69. endpoints:
  70. web:
  71. exposure:
  72. include: "*"
  73. endpoint:
  74. health:
  75. show-details: ALWAYS
  76. ribbon:
  77. ReadTimeout: 60000
  78. ConnectTimeout: 60000
  79. message:
  80. debugMode: true
  81. logging:
  82. level:
  83. com.keao.edu.user.api.client.EduUserFeignService: INFO
  84. push:
  85. jiguang:
  86. reqURL: https://api.jpush.cn/v3/push
  87. appKey:
  88. student: 0e7422e1d6e73637e678716a
  89. teacher: 7e0282ca92c12c8c45a93bb3
  90. system: a003c997b1add94aa8d6caf9
  91. masterSecret:
  92. student: c2361016604eab56ab2db2ac
  93. teacher: d47430e2f4755ef5dc050ac5
  94. system: c281fe6a21acf2e8a9f9d628
  95. apns_production: false