1 Star 0 Fork 30

路大仙儿 / config-server

forked from GuYiTan / config-server 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
auth-service-development.yml 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
tangyi 提交于 2017-04-12 11:21 . 调整
server:
port: 8769
contextPath: /auth
jdbc:
type: mysql
mybatis:
mapperLocations: classpath:mapper/*.xml
configLocation: classpath:/mybatis-config.xml
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
spring:
application:
name: auth-service
# 数据源
datasource:
name: test
url: jdbc:mysql://127.0.0.1:3306/jpa?useUnicode=true&characterEncoding=utf-8
username: root
password:
type: com.alibaba.druid.pool.DruidDataSource #使用drudi数据源
driver-class-name: com.mysql.jdbc.Driver
filters: stat,wall,log4j
maxActive: 200
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
# redis
redis:
database: 0
host: localhost
port: 6379
password:
pool:
max-active: 8
max-wait: -1
max-idle: 8
min-idle: 0
timeout: 0
# spring security oauth2 配置
security:
# sessions: if-required
basic:
enabled: false
oauth2:
resource:
jwt:
keyValue: |
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAimUKhvBhsoeSM3HkIOP/Y3RXjvonBlZnLj8oO92TyAKG53lmAoK0wZ5MTZPsfrOz2Z7CeAp6mPhUANX2RUoFwVzG7rJmgWyqGmGFNBmtYL+uVqQ80TzWi5zyzXTxgVMWiCqqw/u4AeE1qhN8chnGwhUBnpgPAPd8v57mIwg0n5JxjdYe7pgHlpvt8ZXTXd1KBxB5K7WjNlCfMf75ZEeBaplxsSfJUwKbnHQKWcY3NnpjkVR8y4jviAbkOHmGMaliM7fcsLzbosBUPDQuNlvYdjPBRfH6MMPeXRW6On3u0Um9wIYmkQS+AEgHCq4UuLOnTTqqxnGkwFYeMAAXmRyMtQIDAQAB
-----END PUBLIC KEY-----
#logback配置,开发模式日志级别为 INFO
logging:
level:
root: INFO
org:
springframework:
security: DEBUG
com:
tangyi:
mapper: TRACE
Java
1
https://gitee.com/ludaxianer/config-server.git
git@gitee.com:ludaxianer/config-server.git
ludaxianer
config-server
config-server
master

搜索帮助