application.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. server:
  2. port: 8006
  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-cms
  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: cms-server
  24. datasource:
  25. name: test
  26. url: jdbc:mysql://47.114.1.200: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. mybatis:
  46. mapperLocations: classpath:config/mybatis/*.xml
  47. swagger:
  48. base-package: com.ym.mec.cms.controller
  49. ##认证
  50. security:
  51. oauth2:
  52. client:
  53. client-id: app
  54. client-secret: app
  55. resource:
  56. token-info-uri: http://localhost:8001/oauth/check_token
  57. #spring boot admin 相关配置
  58. management:
  59. endpoints:
  60. web:
  61. exposure:
  62. include: "*"
  63. endpoint:
  64. health:
  65. show-details: ALWAYS
  66. ribbon:
  67. ReadTimeout: 60000
  68. ConnectTimeout: 60000
  69. cms:
  70. server:
  71. context:
  72. path: http://admin.dayaedu.com/