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
|