application.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. server:
  2. port: 9003
  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-education
  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. register-with-eureka: false #是否将自己注册到Eureka Server上,默认为true
  20. fetch-registry: false #是否从Eureka Server上获取注册信息,默认为true
  21. spring:
  22. application:
  23. name: education-server
  24. datasource:
  25. name: test
  26. url: jdbc:mysql://47.99.212.176: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: 47.99.212.176
  47. port: 6379
  48. password:
  49. database: 0
  50. #连接超时时间(毫秒)
  51. timeout: 10000
  52. pool:
  53. #连接池最大连接数(使用负值表示没有限制)
  54. max-active: 10
  55. #连接池最大阻塞等待时间(使用负值表示没有限制)
  56. max-wait: -1
  57. #连接池中的最大空闲连接
  58. max-idle: 10
  59. #连接池中的最小空闲连接
  60. min-idle: 0
  61. mybatis-plus:
  62. mapper-locations: classpath*:mapper/*.xml,classpath*:config/mybatis/*.xml
  63. typeAliasesPackage : com.ym.mec.education.entity
  64. configuration:
  65. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  66. swagger:
  67. base-package: com.ym.mec.education.controller
  68. ##认证
  69. security:
  70. oauth2:
  71. client:
  72. client-id: app
  73. client-secret: app
  74. resource:
  75. token-info-uri: http://localhost:8001/oauth/check_token
  76. #spring boot admin 相关配置
  77. management:
  78. endpoints:
  79. web:
  80. exposure:
  81. include: "*"
  82. endpoint:
  83. health:
  84. show-details: ALWAYS
  85. ribbon:
  86. ReadTimeout: 60000
  87. ConnectTimeout: 60000