application.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. <<<<<<< HEAD
  27. url: jdbc:mysql://47.99.212.176:3306/edu_saas?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  28. =======
  29. url: jdbc:mysql://47.99.212.176:3306/edu_saas_test?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  30. >>>>>>> 2368f0a6633c01029a816f0bdab8aa66d0d5b95e
  31. username: edu_saas
  32. password: edu_saas
  33. # 使用druid数据源
  34. type: com.alibaba.druid.pool.DruidDataSource
  35. driver-class-name: com.mysql.cj.jdbc.Driver
  36. filters: stat
  37. maxActive: 20
  38. initialSize: 1
  39. maxWait: 60000
  40. minIdle: 1
  41. timeBetweenEvictionRunsMillis: 60000
  42. minEvictableIdleTimeMillis: 300000
  43. validationQuery: select 'x'
  44. testWhileIdle: true
  45. testOnBorrow: false
  46. testOnReturn: false
  47. poolPreparedStatements: true
  48. maxOpenPreparedStatements: 20
  49. redis:
  50. host: 47.99.212.176
  51. port: 6379
  52. password:
  53. database: 1
  54. #连接超时时间(毫秒)
  55. timeout: 10000
  56. pool:
  57. #连接池最大连接数(使用负值表示没有限制)
  58. max-active: 10
  59. #连接池最大阻塞等待时间(使用负值表示没有限制)
  60. max-wait: -1
  61. #连接池中的最大空闲连接
  62. max-idle: 10
  63. #连接池中的最小空闲连接
  64. min-idle: 0
  65. mybatis:
  66. mapperLocations: classpath:config/config/*.xml
  67. task:
  68. configLocation: classpath:config/properties/quartz.properties
  69. autoStartup: true
  70. startupDelay: 30
  71. security:
  72. oauth2:
  73. client:
  74. client-id: student
  75. client-secret: student
  76. resource:
  77. token-info-uri: http://localhost:8001/oauth/check_token
  78. swagger:
  79. base-package: com.keao.edu.task.controller
  80. ribbon:
  81. ReadTimeout: 60000
  82. ConnectTimeout: 60000