Merge remote-tracking branch 'origin/dev' into test

yun-zuoyi
jenkins 6 years ago
commit e7bf273f69

@ -1,128 +1,98 @@
#项目端口
server.port=8100
#本机ip #本机ip
impp.server.ip=imppcore impp.server.ip=imppcore
#项目端口
server.port=8100
#链路追踪zipkin控制台ip地址 #链路追踪zipkin控制台ip地址
impp.console.ip=http://console:8010 impp.console.ip=http://console:8010
#服务注册中心(多注册中心逗号分隔)
################ 功能配置1 ################
#若无法连接注册中心,是否需要一直检测加入
impp.cluster.fetch=true
#服务注册中心
impp.cluster.regist.center=http://register:8000/eureka/ impp.cluster.regist.center=http://register:8000/eureka/
#多注册中心 #日志默认使用log4j2
#impp.cluster.regist.center=http://192.168.1.20:8000/eureka/,http://192.168.1.20:8001/eureka/ logging.config=classpath:log4j2-spring-dev.xml
################ 功能配置2 ################ ########平台相关参数##########
#是否允许前端跨域提交impp.web.cross.hosts #是否开启redis缓存
impp.web.cross = true impp.config.redis=true
#是否开启rabbitMQ
################ 授权过滤配置 ################ impp.config.rabbitmq=true
#用户登陆路径 #是否开启swagger
filter.shiro.user.loginuri = /login impp.config.swagger=true
#系统管理员登陆路径 #是否开启websocket
filter.shiro.admin.loginuri = /salogin impp.config.websocket=true
#运维人员登陆路径 #是否开启文件服务
filter.shiro.saadmin.loginuri = /salogin impp.config.fastdfs=true
#是否对发布服务进行详细日志分析
#用户授权过滤路径 impp.log.detail.controller=true
filter.shiro.user.filteruri = /impp/operate/** #是否对调用服务进行详细日志分析
#用户授权过滤路径 impp.log.detail.service=true
filter.shiro.admin.filteruri = /impp/adoperate/*
#用户授权过滤路径
filter.shiro.saadmin.filteruri = /impp/saoperate/*
################ 云配置 以projectName作为应用名 ################
#是否开启微服 #是否开启微服
eureka.client.enabled=true eureka.client.enabled=true
#(参数配置)注册中心地址 -》 i3plus-ics多个用逗号分隔
eureka.client.service-url.defaultZone=${impp.cluster.regist.center}
#区域源码中包含defaultZone所以默认使用defaultZone
#eureka.client.region=estsh
#eureka.client.service-url.estsh:http://192.168.1.20:8000/eureka/,http://192.168.1.20:8001/eureka/
################ 本机微服配置 ################
#本服务主机ip若多个网卡则需要设置本服务ip
eureka.instance.ip-address=${impp.server.ip}
#本服务实例ID
eureka.instance.instance-id=${impp.server.ip}:${server.port}
#本服务主机名
eureka.instance.hostname=${impp.server.ip}
#本服务状态页面
eureka.instance.status-page-url=http://${impp.server.ip}:${server.port}/swagger-ui.html
#将自己的IP注册到Eureka Server。若不配置或设置为false表示注册微服务所在操作系统的hostname到Eureka Server
eureka.instance.prefer-ip-address=true
#是否进行健康检查
eureka.client.healthcheck.enabled=true
################ 检测机制 ################
#心跳间隔周期宕机限制30秒没反应视为宕机
eureka.instance.lease-expiration-duration-in-seconds=30
#心跳周期
eureka.instance.lease-renewal-interval-in-seconds=20
#打开feign的熔断 #打开feign的熔断
feign.hystrix.enabled=true feign.hystrix.enabled=true
#重试
ribbon.maxAutoRetries=2
#读取数据时长
ribbon.ReadTimeout=10000
#连接时长
ribbon.ConnectTimeout=10000
#响应超过时长,进行熔断(熔断超时需要大于读取时长及连接时长)
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=15000
#集群名 ################ 队列处理 ################
eureka.instance.metadata-map.cluster=impp_cluster #站内信
impp.mq.queue.letter=true
################ 链路追踪 ################ #邮件
#使用web方式传输信息 impp.mq.queue.mail=true
spring.zipkin.sender.type=web #定时任务
#链路追踪服务的地址 impp.mq.queue.schedule=true
spring.zipkin.base-url=${impp.console.ip} #SWEB通知处理队列
#追踪深度百分比1是全部 impp.mq.queue.sweb.notice=true
spring.sleuth.sampler.probability=1.0
################################ 数据库相关设置 ################################
################ 日志据源 ################
spring.data.mongodb.database=mongoDBSource
spring.data.mongodb.uri=mongodb:27017
spring.data.mongodb.username=sa
spring.data.mongodb.password=i3plus
spring.data.mongodb.port=27017
################ 主数据源 ################
# mysql # mysql
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.validationQuery=SELECT 1
#spring.datasource.url=jdbc:mysql://localhost:3306/i3wms
##Sql-server## ################ 数据池设置 ################
#spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver spring.datasource.maximum-pool-size=10
#spring.datasource.url=jdbc:sqlserver://127.0.0.1:1433;databaseName=i3wms spring.datasource.max-active=5
##oracle## spring.datasource.max-idle=5
#spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver spring.datasource.min-idle=1
#spring.datasource.url=jdbc:oracle:thin:@127.0.0.1:1521:i3wms spring.datasource.initial-size=1
#spring.datasource.username=root spring.datasource.max-wait=10000
#spring.datasource.password=123456 spring.datasource.validation-query=SELECT 1
spring.datasource.test-on-borrow=false
spring.datasource.test-while-idle=true
spring.datasource.time-between-eviction-runs-millis=18800
##主数据源,读写 ##主数据源,读写
#impp.write.datasource.type=com.zaxxer.hikari.HikariDataSource #impp.write.datasource.type=com.zaxxer.hikari.HikariDataSource
impp.write.datasource.driver-class-name=com.mysql.jdbc.Driver impp.write.datasource.driver-class-name=com.mysql.jdbc.Driver
impp.write.datasource.jdbc-url=jdbc:mysql://dbmaster:3306/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8 impp.write.datasource.jdbc-url=jdbc:mysql://dbmaster:3306/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
impp.write.datasource.username=root impp.write.datasource.username=impp_i3_core_user
impp.write.datasource.password=estsh123 impp.write.datasource.password=impp_i3_core_pwd
##辅数据源,只读 ##辅数据源,只读
#impp.read.datasource.type=com.zaxxer.hikari.HikariDataSource #impp.read.datasource.type=com.zaxxer.hikari.HikariDataSource
impp.read.datasource.driver-class-name=com.mysql.jdbc.Driver impp.read.datasource.driver-class-name=com.mysql.jdbc.Driver
impp.read.datasource.jdbc-url=jdbc:mysql://dbslave:3306/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8 impp.read.datasource.jdbc-url=jdbc:mysql://dbslave:3306/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
impp.read.datasource.username=root impp.read.datasource.username=impp_i3_core_user
impp.read.datasource.password=estsh123 impp.read.datasource.password=impp_i3_core_pwd
################ 日志数据源 ################
spring.data.mongodb.database=mongoDBSource
spring.data.mongodb.uri=mongodb:27017
spring.data.mongodb.username=sa
spring.data.mongodb.password=i3plus
spring.data.mongodb.port=27017
################ JPA设置设置 ################
# mysql
spring.jpa.database=MYSQL
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
#是否显示sql
spring.jpa.show-sql=true
#表关系create,create-drop,update,validate
spring.jpa.properties.hibernate.hbm2ddl.auto=update
##############定时任务持久化############## ##############定时任务持久化##############
impp.schedule.open=true impp.schedule.open=true
impp.schedule.datasource.driver-class-name=com.mysql.jdbc.Driver impp.schedule.datasource.driver-class-name=com.mysql.jdbc.Driver
impp.schedule.datasource.jdbc-url=jdbc:mysql://dbmaster:3306/impp_i3_schedule?autoReconnect=true&useSSL=false&characterEncoding=utf-8 impp.schedule.datasource.jdbc-url=jdbc:mysql://dbmaster:3306/impp_i3_schedule?autoReconnect=true&useSSL=false&characterEncoding=utf-8
impp.schedule.datasource.username=root impp.schedule.datasource.username=impp_i3_schedule_user
impp.schedule.datasource.password=estsh123 impp.schedule.datasource.password=impp_i3_schedule_pwd
impp.schedule.datasource.max-connections=20 impp.schedule.datasource.max-connections=20
#定时任务在服务启动后多少秒执行 #定时任务在服务启动后多少秒执行
impp.schedule.start.after-second=20 impp.schedule.start.after-second=20
@ -136,49 +106,63 @@ impp.schedule.thread-count=10
impp.schedule.thread-priority=5 impp.schedule.thread-priority=5
################ 数据池设置 ################ ################################ 其他功能设置 ################################
spring.datasource.maximum-pool-size=10 #redisIP
spring.datasource.max-active=3 redis.hostName=redis
spring.datasource.max-idle=3 #端口号
spring.datasource.min-idle=1 redis.port=6379
spring.datasource.initial-size=1 #如果有密码
spring.datasource.max-wait=10000 redis.password=
spring.datasource.validation-query=SELECT 1 ##其他redis配置需要调整的加在此处
spring.datasource.test-on-borrow=false ################## rabbitMQ配置 ####################
spring.datasource.test-while-idle=true spring.rabbitmq.vhost=/
spring.datasource.time-between-eviction-runs-millis=18800 spring.rabbitmq.host=rabbitmq
spring.rabbitmq.port=5672
################ JPA设置设置 ################ spring.rabbitmq.username=estsh
# mysql spring.rabbitmq.password=estsh123
spring.jpa.database=MYSQL ##其他rabbitMq配置需要调整的加在此处
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
##Sql-server##
#spring.jpa.database=sql_server ################ 微服配置 ################
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServerDialect #是否进行健康检查
##oracle## eureka.client.healthcheck.enabled=true
#spring.jpa.database=oracle #若无法连接注册中心,是否需要一直检测加入
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.Oracle10gDialect impp.cluster.fetch=true
#集群名
eureka.instance.metadata-map.cluster=impp_cluster
#(参数配置)注册中心地址 -》 i3plus-ics多个用逗号分隔
eureka.client.service-url.defaultZone=${impp.cluster.regist.center}
#本服务主机ip若多个网卡则需要设置本服务ip
eureka.instance.ip-address=${impp.server.ip}
#本服务实例ID
eureka.instance.instance-id=${impp.server.ip}:${server.port}
#本服务主机名
eureka.instance.hostname=${impp.server.ip}
#本服务状态页面
eureka.instance.status-page-url=http://${impp.server.ip}:${server.port}/swagger-ui.html
#将自己的IP注册到Eureka Server。若不配置或设置为false表示注册微服务所在操作系统的hostname到Eureka Server
eureka.instance.prefer-ip-address=true
# mysql ################ 检测机制 ################
spring.datasource.validationQuery=SELECT 1 #心跳间隔周期宕机限制30秒没反应视为宕机
##Sql-server## eureka.instance.lease-expiration-duration-in-seconds=30
# spring.datasource.validationQuery=SELECT 1 #心跳周期
##oracle## eureka.instance.lease-renewal-interval-in-seconds=20
# spring.datasource.validationQuery=SELECT 1 FROM DUAL
#ImprovedNamingStrategy / physical_naming_strategy java属性映射到数据库字段时命名规则 ################ 熔断配置 ################
# spring.jpa.properties.hibernate.physical_naming_strategy=org.hibernate.cfg.ImprovedNamingStrategy/org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl #重试
#表关系create,create-drop,update,validate ribbon.maxAutoRetries=2
spring.jpa.properties.hibernate.hbm2ddl.auto=update #读取数据时长
#是否显示sql ribbon.ReadTimeout=30000
spring.jpa.show-sql=true #连接时长
ribbon.ConnectTimeout=50000
#响应超过时长,进行熔断(熔断超时需要大于读取时长及连接时长)
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=60000
################ MQ队列处理 ################ ################ 链路追踪 ################
# 站内信 #使用web方式传输信息
impp.mq.queue.letter = true spring.zipkin.sender.type=web
# 邮件 #链路追踪服务的地址
impp.mq.queue.mail = true spring.zipkin.base-url=${impp.console.ip}
# 定时任务 #追踪深度百分比1是全部
impp.mq.queue.schedule = true spring.sleuth.sampler.probability=1.0
# SWEB通知处理队列
impp.mq.queue.sweb.notice = true

Loading…
Cancel
Save