1 Star 0 Fork 30

路大仙儿 / config-server

forked from GuYiTan / config-server 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
exam-service-docker.yml 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
tangyi 提交于 2017-04-12 10:51 . 调整
spring:
profiles: docker
application:
name: exam-service
# 数据源
datasource:
name: test
url: jdbc:mysql://127.0.0.1:3306/exam?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
mybatis:
mapperLocations: classpath:mapper/*.xml
configLocation: classpath:/mybatis-config.xml
# 配置运行端口号
server:
port: 8870
# 注册中心配置
eureka:
instance:
hostname: localhost
port: 8761
client:
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${eureka.instance.port}/eureka/
# 禁用 security 基本配置
security:
basic:
enabled: false
#logback配置,生产环境日志级别为 WARN 甚至更高
logging:
file: logs/exam-service/exam-service-docker.log
level:
root: WARN
Java
1
https://gitee.com/ludaxianer/config-server.git
git@gitee.com:ludaxianer/config-server.git
ludaxianer
config-server
config-server
master

搜索帮助