forked from kidgrow-microservices-platform

侯瑞军
2021-03-31 90f2acaa6c61d5a60822d4fee5a44ec3c5404f67
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
server:
  tomcat:
    uri-encoding: UTF-8
    max-threads: 1000
    min-spare-threads: 30
  port: 8000
  servlet:
    session:
      cookie:
        name: OAUTH2SESSION
 
# mysql
spring:
  application:
    name: uaa-server
  datasource:
    url: jdbc:mysql://${kidgrow.datasource.ip}:3306/oauth_center_${spring.profiles.active}?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
    username: ${kidgrow.datasource.username}
    password: ${kidgrow.datasource.password}
#    driver-class-name: com.mysql.jdbc.Driver
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      aop-patterns: com.kidgrow.oauth2.controller.*
 
eureka:
  instance:
    ###注册中心ip地址
    hostname: ${kidgrow.eureka.instance.hostname}
    instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
    prefer-ip-address: true
  client:
    serviceUrl:
      defaultZone: ${kidgrow.eureka.client.serviceUrl.defaultZone}
 
mybatis-plus:
  mapper-locations: classpath:/mapper/*.xml
  #实体扫描,多个package用逗号或者分号分隔
  typeAliasesPackage: com.kidgrow.oauth2.model
  global-config:
    db-config:
      id-type: auto
 
 
 
kidgrow:
  oauth2:
    token:
      store:
        type: redis
  swagger:
    base-package: com.kidgrow.oauth2.controller
    description: 认证中心接口文档
    enabled: true
    title: 认证中心服务
    version: 1.0
  security:
    code:
      # 忽略验证码的应用编号
      ignoreClientCode: app,hospital,readxapp,glssz
 
encrypt:
  key-store:
    location: classpath:kidgrow.jks
    secret: kidgrow!@#$
    alias: kidgrow
 
ribbon:
  ConnectTimeout: 30000
  MaxAutoRetriesNextServer: 0
  ReadTimeout: 30000
  ServerListRefreshInterval: 15000
 
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 1000