server: port: 8006 tomcat: accesslog: enabled: true buffered: true directory: /var/logs file-date-format: -yyyy-MM-dd pattern: common prefix: tomcat-cms rename-on-rotate: false request-attributes-enabled: false rotate: true suffix: .log eureka: client: serviceUrl: defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/ instance: lease-renewal-interval-in-seconds: 5 spring: application: name: cms-server datasource: name: test url: jdbc:mysql://47.114.1.200:3306/mec_dev?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai username: mec_dev password: mec_dev # 使用druid数据源 type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat maxActive: 20 initialSize: 1 maxWait: 60000 minIdle: 1 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeMillis: 300000 validationQuery: select 'x' testWhileIdle: true testOnBorrow: false testOnReturn: false poolPreparedStatements: true maxOpenPreparedStatements: 20 mybatis: mapperLocations: classpath:config/mybatis/*.xml swagger: base-package: com.ym.mec.cms.controller ##认证 security: oauth2: client: client-id: app client-secret: app resource: token-info-uri: http://localhost:8001/oauth/check_token #spring boot admin 相关配置 management: endpoints: web: exposure: include: "*" endpoint: health: show-details: ALWAYS ribbon: ReadTimeout: 60000 ConnectTimeout: 60000 cms: server: context: path: http://admin.dayaedu.com/