|
|
@ -1,5 +1,22 @@
|
|
|
|
#项目端口
|
|
|
|
#项目端口
|
|
|
|
server.port=51010
|
|
|
|
server.port=8100
|
|
|
|
|
|
|
|
#本机ip
|
|
|
|
|
|
|
|
impp.server.ip=192.168.1.56
|
|
|
|
|
|
|
|
#console控制台服务(zipkin追踪全路径)
|
|
|
|
|
|
|
|
impp.console.ip=http://cst.estsh.com
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################ 功能配置1 ################
|
|
|
|
|
|
|
|
#若无法连接注册中心,是否需要一直检测加入
|
|
|
|
|
|
|
|
impp.cluster.fetch=true
|
|
|
|
|
|
|
|
#服务注册中心
|
|
|
|
|
|
|
|
impp.cluster.regist.center=http://regt.estsh.com/eureka/
|
|
|
|
|
|
|
|
#多注册中心
|
|
|
|
|
|
|
|
#impp.cluster.regist.center=http://192.168.1.20:8000/eureka/,http://192.168.1.20:8001/eureka/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################ 功能配置2 ################
|
|
|
|
|
|
|
|
#是否允许前端跨域提交impp.web.cross.hosts
|
|
|
|
|
|
|
|
impp.web.cross = true
|
|
|
|
|
|
|
|
|
|
|
|
################ 授权过滤配置 ################
|
|
|
|
################ 授权过滤配置 ################
|
|
|
|
#用户登陆路径
|
|
|
|
#用户登陆路径
|
|
|
|
filter.shiro.user.loginuri = /login
|
|
|
|
filter.shiro.user.loginuri = /login
|
|
|
@ -15,43 +32,37 @@ filter.shiro.admin.filteruri = /adoperate/*
|
|
|
|
#用户授权过滤路径
|
|
|
|
#用户授权过滤路径
|
|
|
|
filter.shiro.saadmin.filteruri = /saoperate/*
|
|
|
|
filter.shiro.saadmin.filteruri = /saoperate/*
|
|
|
|
|
|
|
|
|
|
|
|
################ 跨域提交 ################
|
|
|
|
|
|
|
|
#是否允许前端跨域提交impp.web.cross.hosts
|
|
|
|
|
|
|
|
impp.web.cross = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################ 云配置 (以projectName作为应用名) ################
|
|
|
|
################ 云配置 (以projectName作为应用名) ################
|
|
|
|
#若无法连接注册中心,是否需要一直检测加入
|
|
|
|
|
|
|
|
impp.cluster.fetch=false
|
|
|
|
|
|
|
|
#是否开启微服
|
|
|
|
#是否开启微服
|
|
|
|
eureka.client.enabled=false
|
|
|
|
eureka.client.enabled=true
|
|
|
|
#(参数配置)注册中心地址 -》 i3plus-ics,多个用逗号分隔
|
|
|
|
#(参数配置)注册中心地址 -》 i3plus-ics,多个用逗号分隔
|
|
|
|
eureka.client.service-url.defaultZone=http://192.168.1.20:8000/eureka/,http://192.168.1.20:8001/eureka/
|
|
|
|
eureka.client.service-url.defaultZone=${impp.cluster.regist.center}
|
|
|
|
#区域(源码中包含defaultZone,所以默认使用defaultZone)
|
|
|
|
#区域(源码中包含defaultZone,所以默认使用defaultZone)
|
|
|
|
#eureka.client.region=estsh
|
|
|
|
#eureka.client.region=estsh
|
|
|
|
#eureka.client.service-url.estsh:http://192.168.1.20:8000/eureka/,http://192.168.1.20:8001/eureka/
|
|
|
|
#eureka.client.service-url.estsh:http://192.168.1.20:8000/eureka/,http://192.168.1.20:8001/eureka/
|
|
|
|
|
|
|
|
|
|
|
|
#### 本机微服配置 ####
|
|
|
|
################ 本机微服配置 ################
|
|
|
|
#本服务主机ip(若多个网卡,则需要设置本服务ip)
|
|
|
|
#本服务主机ip(若多个网卡,则需要设置本服务ip)
|
|
|
|
eureka.instance.ip-address=192.168.1.20
|
|
|
|
eureka.instance.ip-address=${impp.server.ip}
|
|
|
|
#本服务实例ID
|
|
|
|
#本服务实例ID
|
|
|
|
#eureka.instance.instance-id=${eureka.instance.ip-address}:${server.port}
|
|
|
|
eureka.instance.instance-id=${impp.server.ip}:${server.port}
|
|
|
|
#本服务主机名
|
|
|
|
#本服务主机名
|
|
|
|
#eureka.instance.hostname=${eureka.instance.ip-address}
|
|
|
|
eureka.instance.hostname=${impp.server.ip}
|
|
|
|
#本服务状态页面
|
|
|
|
#本服务状态页面
|
|
|
|
eureka.instance.status-page-url=http://${eureka.instance.ip-address}:${server.port}/swagger-ui.html
|
|
|
|
eureka.instance.status-page-url=http://${impp.server.ip}:${server.port}/swagger-ui.html
|
|
|
|
#将自己的IP注册到Eureka Server。若不配置或设置为false,表示注册微服务所在操作系统的hostname到Eureka Server
|
|
|
|
#将自己的IP注册到Eureka Server。若不配置或设置为false,表示注册微服务所在操作系统的hostname到Eureka Server
|
|
|
|
eureka.instance.prefer-ip-address=true
|
|
|
|
eureka.instance.prefer-ip-address=true
|
|
|
|
#是否进行健康检查
|
|
|
|
#是否进行健康检查
|
|
|
|
eureka.client.healthcheck.enabled=true
|
|
|
|
eureka.client.healthcheck.enabled=true
|
|
|
|
|
|
|
|
|
|
|
|
#### 检测机制 ####
|
|
|
|
################ 检测机制 ################
|
|
|
|
#心跳间隔周期,宕机限制(秒),90秒没反应视为宕机
|
|
|
|
#心跳间隔周期,宕机限制(秒),30秒没反应视为宕机
|
|
|
|
eureka.instance.lease-expiration-duration-in-seconds=30
|
|
|
|
eureka.instance.lease-expiration-duration-in-seconds=30
|
|
|
|
#心跳周期
|
|
|
|
#心跳周期
|
|
|
|
eureka.instance.lease-renewal-interval-in-seconds=20
|
|
|
|
eureka.instance.lease-renewal-interval-in-seconds=20
|
|
|
|
|
|
|
|
|
|
|
|
#打开feign的熔断
|
|
|
|
#打开feign的熔断
|
|
|
|
feign.hystrix.enabled=false
|
|
|
|
feign.hystrix.enabled=true
|
|
|
|
#读取数据时长
|
|
|
|
#读取数据时长
|
|
|
|
ribbon.ReadTimeout=3000
|
|
|
|
ribbon.ReadTimeout=3000
|
|
|
|
#连接时长
|
|
|
|
#连接时长
|
|
|
@ -64,9 +75,11 @@ hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=5000
|
|
|
|
#集群名
|
|
|
|
#集群名
|
|
|
|
eureka.instance.metadata-map.cluster=impp_cluster
|
|
|
|
eureka.instance.metadata-map.cluster=impp_cluster
|
|
|
|
|
|
|
|
|
|
|
|
#### 链路追踪 ####
|
|
|
|
################ 链路追踪 ################
|
|
|
|
|
|
|
|
#使用web方式传输信息
|
|
|
|
|
|
|
|
spring.zipkin.sender.type=web
|
|
|
|
#链路追踪服务的地址
|
|
|
|
#链路追踪服务的地址
|
|
|
|
spring.zipkin.base-url=http://192.168.1.20:8010
|
|
|
|
spring.zipkin.base-url=${impp.console.ip}
|
|
|
|
#追踪深度,百分比,1是全部
|
|
|
|
#追踪深度,百分比,1是全部
|
|
|
|
spring.sleuth.sampler.probability=1.0
|
|
|
|
spring.sleuth.sampler.probability=1.0
|
|
|
|
|
|
|
|
|
|
|
@ -93,22 +106,22 @@ spring.data.mongodb.port=27017
|
|
|
|
##主数据源,读写
|
|
|
|
##主数据源,读写
|
|
|
|
#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://192.168.1.55:3306/test_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
|
|
|
|
impp.write.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/dev_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
|
|
|
|
impp.write.datasource.username=impp_test_zzm
|
|
|
|
impp.write.datasource.username=i3_dev_core
|
|
|
|
impp.write.datasource.password=123456
|
|
|
|
impp.write.datasource.password=i3_core_pass
|
|
|
|
|
|
|
|
|
|
|
|
##辅数据源,只读
|
|
|
|
##辅数据源,只读
|
|
|
|
#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://192.168.1.55:3306/test_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
|
|
|
|
impp.read.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/dev_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
|
|
|
|
impp.read.datasource.username=impp_test_zzm
|
|
|
|
impp.read.datasource.username=i3_dev_core
|
|
|
|
impp.read.datasource.password=123456
|
|
|
|
impp.read.datasource.password=i3_core_pass
|
|
|
|
|
|
|
|
|
|
|
|
##############定时任务持久化##############
|
|
|
|
##############定时任务持久化##############
|
|
|
|
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://192.168.1.55:3306/test_i3_schedule?autoReconnect=true&useSSL=false&characterEncoding=utf-8
|
|
|
|
impp.schedule.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/dev_i3_schedule?autoReconnect=true&useSSL=false&characterEncoding=utf-8
|
|
|
|
impp.schedule.datasource.username=impp_test_zzm
|
|
|
|
impp.schedule.datasource.username=i3_dev_schedule
|
|
|
|
impp.schedule.datasource.password=123456
|
|
|
|
impp.schedule.datasource.password=i3_schedule_pass
|
|
|
|
impp.schedule.datasource.max-connections=20
|
|
|
|
impp.schedule.datasource.max-connections=20
|
|
|
|
#定时任务在服务启动后多少秒执行
|
|
|
|
#定时任务在服务启动后多少秒执行
|
|
|
|
impp.schedule.start.after-second=20
|
|
|
|
impp.schedule.start.after-second=20
|
|
|
@ -157,4 +170,4 @@ spring.datasource.validationQuery=SELECT 1
|
|
|
|
#表关系create,create-drop,update,validate
|
|
|
|
#表关系create,create-drop,update,validate
|
|
|
|
spring.jpa.properties.hibernate.hbm2ddl.auto=update
|
|
|
|
spring.jpa.properties.hibernate.hbm2ddl.auto=update
|
|
|
|
#是否显示sql
|
|
|
|
#是否显示sql
|
|
|
|
spring.jpa.show-sql=true
|
|
|
|
spring.jpa.show-sql=true
|