application-dev.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. server:
  2. port: 8003
  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-user
  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: teacher-server
  24. servlet:
  25. multipart:
  26. # 最大支持文件大小
  27. max-file-size: 50MB
  28. # 最大支持请求大小
  29. max-request-size: 50MB
  30. datasource:
  31. name: test
  32. # url: jdbc:mysql://47.99.212.176:3306/edu_saas?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  33. # username: edu_saas
  34. # password: edu_saas
  35. url: jdbc:mysql://47.114.176.40:3306/edu_saas?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
  36. username: edu_saas
  37. password: dayaDataOnline@2019
  38. # 使用druid数据源
  39. type: com.alibaba.druid.pool.DruidDataSource
  40. driver-class-name: com.mysql.cj.jdbc.Driver
  41. filters: stat
  42. maxActive: 20
  43. initialSize: 1
  44. maxWait: 60000
  45. minIdle: 1
  46. timeBetweenEvictionRunsMillis: 60000
  47. minEvictableIdleTimeMillis: 300000
  48. validationQuery: select 'x'
  49. testWhileIdle: true
  50. testOnBorrow: false
  51. testOnReturn: false
  52. poolPreparedStatements: true
  53. maxOpenPreparedStatements: 20
  54. redis:
  55. host: 47.114.176.40
  56. port: 6379
  57. password: dyym
  58. database: 1
  59. #连接超时时间(毫秒)
  60. timeout: 10000
  61. jedis:
  62. pool:
  63. #连接池最大连接数(使用负值表示没有限制)
  64. max-active: 10
  65. #连接池最大阻塞等待时间(使用负值表示没有限制)
  66. max-wait: -1
  67. #连接池中的最大空闲连接
  68. max-idle: 10
  69. #连接池中的最小空闲连接
  70. min-idle: 1
  71. mybatis:
  72. mapperLocations: classpath*:config/mybatis/*.xml
  73. typeAliasesPackage: com.keao.edu.*.entity
  74. configuration:
  75. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  76. swagger:
  77. base-package: com.keao.edu.user.controller
  78. ##认证
  79. security:
  80. oauth2:
  81. client:
  82. client-id: student
  83. client-secret: student
  84. resource:
  85. token-info-uri: http://localhost:8001/oauth/check_token
  86. #spring boot admin 相关配置
  87. management:
  88. endpoints:
  89. web:
  90. exposure:
  91. include: "*"
  92. endpoint:
  93. health:
  94. show-details: ALWAYS
  95. ribbon:
  96. ReadTimeout: 60000
  97. ConnectTimeout: 60000
  98. message:
  99. debugMode: true
  100. logging:
  101. level:
  102. com.keao.edu.user.api.client.EduUserFeignService: INFO
  103. com.keao.edu.user.dao: DEBUG
  104. push:
  105. jiguang:
  106. reqURL: https://api.jpush.cn/v3/push
  107. apns_production: false