123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- server:
- port: 8003
- tomcat:
- accesslog:
- enabled: true
- buffered: true
- directory: /var/logs
- file-date-format: -yyyy-MM-dd
- pattern: common
- prefix: tomcat-user
- 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: teacher-server
- servlet:
- multipart:
- # 最大支持文件大小
- max-file-size: 50MB
- # 最大支持请求大小
- max-request-size: 50MB
-
- datasource:
- name: test
- # url: jdbc:mysql://47.99.212.176:3306/edu_saas?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
- # username: edu_saas
- # password: edu_saas
- url: jdbc:mysql://47.114.176.40:3306/edu_saas?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
- username: edu_saas
- password: dayaDataOnline@2019
- # 使用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
- redis:
- host: 47.114.176.40
- port: 6379
- password: dyym
- database: 1
- #连接超时时间(毫秒)
- timeout: 10000
- jedis:
- pool:
- #连接池最大连接数(使用负值表示没有限制)
- max-active: 10
- #连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: -1
- #连接池中的最大空闲连接
- max-idle: 10
- #连接池中的最小空闲连接
- min-idle: 1
- mybatis:
- mapperLocations: classpath*:config/mybatis/*.xml
- typeAliasesPackage: com.keao.edu.*.entity
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- swagger:
- base-package: com.keao.edu.user.controller
- ##认证
- security:
- oauth2:
- client:
- client-id: student
- client-secret: student
- 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
- message:
- debugMode: true
- logging:
- level:
- com.keao.edu.user.api.client.EduUserFeignService: INFO
- com.keao.edu.user.dao: DEBUG
- push:
- jiguang:
- reqURL: https://api.jpush.cn/v3/push
- apns_production: false
|