DdlPack,封装bug

yun-zuoyi
alwaysfrin 6 years ago
parent c6f8e367f7
commit cc17ff9c13

@ -1,107 +1,57 @@
#项目端口 #项目端口
server.port=8100 server.port=8100
#本机ip #链路追踪zipkin控制台ip地址
impp.server.ip=192.168.1.56
#console控制台服务zipkin追踪全路径
impp.console.ip=http://192.168.1.56:8010 impp.console.ip=http://192.168.1.56:8010
#服务注册中心(多注册中心逗号分隔)
################ 功能配置1 ################
#若无法连接注册中心,是否需要一直检测加入
impp.cluster.fetch=true
#服务注册中心
impp.cluster.regist.center=http://192.168.1.56:8000/eureka/ impp.cluster.regist.center=http://192.168.1.56: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-prod.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
################ 链路追踪 ################ ################ 队列处理 ################
#使用web方式传输信息 #站内信
spring.zipkin.sender.type=web impp.mq.queue.letter=true
#链路追踪服务的地址 #邮件
spring.zipkin.base-url=${impp.console.ip} impp.mq.queue.mail=true
#追踪深度百分比1是全部 #定时任务
spring.sleuth.sampler.probability=1.0 impp.mq.queue.schedule=true
#SWEB通知处理队列
################ 日志据源 ################ impp.mq.queue.sweb.notice=true
spring.data.mongodb.database=mongoDBSource
spring.data.mongodb.uri=192.168.1.55: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=3
##oracle## spring.datasource.max-idle=3
#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
@ -117,6 +67,24 @@ impp.read.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/impp_i3_core?autoRe
impp.read.datasource.username=impp_i3_core_user impp.read.datasource.username=impp_i3_core_user
impp.read.datasource.password=impp_i3_core_pwd impp.read.datasource.password=impp_i3_core_pwd
################ 日志数据源 ################
spring.data.mongodb.database=mongoDBSource
spring.data.mongodb.uri=192.168.1.55: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
@ -136,49 +104,71 @@ impp.schedule.thread-count=10
impp.schedule.thread-priority=5 impp.schedule.thread-priority=5
################ 数据池设置 ################
spring.datasource.maximum-pool-size=10
spring.datasource.max-active=3
spring.datasource.max-idle=3
spring.datasource.min-idle=1
spring.datasource.initial-size=1
spring.datasource.max-wait=10000
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
################ JPA设置设置 ################ ################################ 其他功能设置 ################################
# mysql #redisIP
spring.jpa.database=MYSQL redis.hostName=192.168.1.55
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect #端口号
##Sql-server## redis.port=16376
#spring.jpa.database=sql_server #如果有密码
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServerDialect redis.password=
##oracle## ##其他redis配置需要调整的加在此处
#spring.jpa.database=oracle ################## rabbitMQ配置 ####################
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.Oracle10gDialect spring.rabbitmq.vhost=/
spring.rabbitmq.host=192.168.1.55
spring.rabbitmq.port=5672
spring.rabbitmq.username=estsh
spring.rabbitmq.password=estsh123
##其他rabbitMq配置需要调整的加在此处
# mysql ################## fastDFS配置 ####################
spring.datasource.validationQuery=SELECT 1 #服务器配置
##Sql-server## fastdfs.tracker_servers=192.168.1.56:7031
# spring.datasource.validationQuery=SELECT 1 # 文件展示地址
##oracle## fastdfs.http.ui.host=http://dfs.estsh.com
# 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
spring.jpa.properties.hibernate.hbm2ddl.auto=update
#是否显示sql
spring.jpa.show-sql=true
################ MQ队列处理 ################
# 站内信 ################ 微服配置 ################
impp.mq.queue.letter = true #是否进行健康检查
# 邮件 eureka.client.healthcheck.enabled=true
impp.mq.queue.mail = true #若无法连接注册中心,是否需要一直检测加入
# 定时任务 impp.cluster.fetch=true
impp.mq.queue.schedule = true #集群名
# SWEB通知处理队列 eureka.instance.metadata-map.cluster=impp_cluster
impp.mq.queue.sweb.notice = true #(参数配置)注册中心地址 -》 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
################ 检测机制 ################
#心跳间隔周期宕机限制30秒没反应视为宕机
eureka.instance.lease-expiration-duration-in-seconds=30
#心跳周期
eureka.instance.lease-renewal-interval-in-seconds=20
################ 熔断配置 ################
#重试
ribbon.maxAutoRetries=2
#读取数据时长
ribbon.ReadTimeout=30000
#连接时长
ribbon.ConnectTimeout=50000
#响应超过时长,进行熔断(熔断超时需要大于读取时长及连接时长)
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=60000
################ 链路追踪 ################
#使用web方式传输信息
spring.zipkin.sender.type=web
#链路追踪服务的地址
spring.zipkin.base-url=${impp.console.ip}
#追踪深度百分比1是全部
spring.sleuth.sampler.probability=1.0

@ -2,7 +2,7 @@
server.port=8100 server.port=8100
#本机ip #本机ip
impp.server.ip=imppcore impp.server.ip=imppcore
#console控制台服务zipkin追踪全路径 #链路追踪zipkin控制台ip地址
impp.console.ip=http://console:8010 impp.console.ip=http://console:8010
################ 功能配置1 ################ ################ 功能配置1 ################

@ -1,121 +1,94 @@
#项目端口 #项目端口
server.port=1100 server.port=1100
#本机ip #链路追踪zipkin控制台ip地址
impp.server.ip=192.168.1.56 impp.console.ip=http://192.168.1.56:8010
#console控制台服务zipkin追踪全路径 #服务注册中心(多注册中心逗号分隔)
impp.console.ip=http://cs.estsh.com impp.cluster.regist.center=http://192.168.1.56:8000/eureka/
#日志默认使用log4j2
################ 功能配置1 ################ logging.config=classpath:log4j2-spring-prod.xml
#若无法连接注册中心,是否需要一直检测加入
impp.cluster.fetch=true ########平台相关参数##########
#服务注册中心 #是否开启redis缓存
impp.cluster.regist.center=http://reg.estsh.com/eureka/ impp.config.redis=true
#多注册中心 #是否开启rabbitMQ
#impp.cluster.regist.center=http://192.168.1.20:8000/eureka/,http://192.168.1.20:8001/eureka/ impp.config.rabbitmq=true
#是否开启swagger
#用户登陆路径 impp.config.swagger=true
filter.shiro.user.loginuri = /login #是否开启websocket
#系统管理员登陆路径 impp.config.websocket=true
filter.shiro.admin.loginuri = /salogin #是否开启文件服务
#运维人员登陆路径 impp.config.fastdfs=true
filter.shiro.saadmin.loginuri = /salogin #是否对发布服务进行详细日志分析
impp.log.detail.controller=true
#用户授权过滤路径 #是否对调用服务进行详细日志分析
filter.shiro.user.filteruri = /impp/** impp.log.detail.service=true
#用户授权过滤路径
filter.shiro.admin.filteruri = /adoperate/*
#用户授权过滤路径
filter.shiro.saadmin.filteruri = /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
################ 链路追踪 ################
#使用web方式传输信息
spring.zipkin.sender.type=web
#链路追踪服务的地址
spring.zipkin.base-url=${impp.console.ip}
#追踪深度百分比1是全部
spring.sleuth.sampler.probability=1.0
################ 日志据源 ################ ################ 队列处理 ################
spring.data.mongodb.database=prodMongoDBSource #站内信
spring.data.mongodb.uri=192.168.1.55:27017 impp.mq.queue.letter=true
spring.data.mongodb.username=sa #邮件
spring.data.mongodb.password=i3plus impp.mq.queue.mail=true
spring.data.mongodb.port=27017 #定时任务
impp.mq.queue.schedule=true
################ 主数据源 ################ #SWEB通知处理队列
impp.mq.queue.sweb.notice=true
################################ 数据库相关设置 ################################
# 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=3
##oracle## spring.datasource.max-idle=3
#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://192.168.1.55:3309/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8 impp.write.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
impp.write.datasource.username=impp_i3_core_user impp.write.datasource.username=impp_i3_core_user
impp.write.datasource.password=impp_i3_core_pwd 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://192.168.1.55:3309/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8 impp.read.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
impp.read.datasource.username=impp_i3_core_user impp.read.datasource.username=impp_i3_core_user
impp.read.datasource.password=impp_i3_core_pwd impp.read.datasource.password=impp_i3_core_pwd
################ 日志数据源 ################
spring.data.mongodb.database=mongoDBSource
spring.data.mongodb.uri=192.168.1.55: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://192.168.1.55:3309/impp_i3_schedule?autoReconnect=true&useSSL=false&characterEncoding=utf-8 impp.schedule.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/impp_i3_schedule?autoReconnect=true&useSSL=false&characterEncoding=utf-8
impp.schedule.datasource.username=impp_i3_schedule_user impp.schedule.datasource.username=impp_i3_schedule_user
impp.schedule.datasource.password=impp_i3_schedule_pwd impp.schedule.datasource.password=impp_i3_schedule_pwd
impp.schedule.datasource.max-connections=20 impp.schedule.datasource.max-connections=20
@ -131,49 +104,71 @@ impp.schedule.thread-count=10
impp.schedule.thread-priority=5 impp.schedule.thread-priority=5
################ 数据池设置 ################
spring.datasource.maximum-pool-size=10
spring.datasource.max-active=3
spring.datasource.max-idle=3
spring.datasource.min-idle=1
spring.datasource.initial-size=1
spring.datasource.max-wait=10000
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
################ JPA设置设置 ################ ################################ 其他功能设置 ################################
# mysql #redisIP
spring.jpa.database=MYSQL redis.hostName=192.168.1.55
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect #端口号
##Sql-server## redis.port=16376
#spring.jpa.database=sql_server #如果有密码
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServerDialect redis.password=
##oracle## ##其他redis配置需要调整的加在此处
#spring.jpa.database=oracle ################## rabbitMQ配置 ####################
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.Oracle10gDialect spring.rabbitmq.vhost=/
spring.rabbitmq.host=192.168.1.55
spring.rabbitmq.port=5672
spring.rabbitmq.username=estsh
spring.rabbitmq.password=estsh123
##其他rabbitMq配置需要调整的加在此处
# mysql ################## fastDFS配置 ####################
spring.datasource.validationQuery=SELECT 1 #服务器配置
##Sql-server## fastdfs.tracker_servers=192.168.1.56:7031
# spring.datasource.validationQuery=SELECT 1 # 文件展示地址
##oracle## fastdfs.http.ui.host=http://dfs.estsh.com
# 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
spring.jpa.properties.hibernate.hbm2ddl.auto=update
#是否显示sql
spring.jpa.show-sql=true
################ MQ队列处理 ################
# 站内信 ################ 微服配置 ################
impp.mq.queue.letter = true #是否进行健康检查
# 邮件 eureka.client.healthcheck.enabled=true
impp.mq.queue.mail = true #若无法连接注册中心,是否需要一直检测加入
# 定时任务 impp.cluster.fetch=true
impp.mq.queue.schedule = true #集群名
# SWEB通知处理队列 eureka.instance.metadata-map.cluster=impp_cluster
impp.mq.queue.sweb.notice = true #(参数配置)注册中心地址 -》 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
################ 检测机制 ################
#心跳间隔周期宕机限制30秒没反应视为宕机
eureka.instance.lease-expiration-duration-in-seconds=30
#心跳周期
eureka.instance.lease-renewal-interval-in-seconds=20
################ 熔断配置 ################
#重试
ribbon.maxAutoRetries=2
#读取数据时长
ribbon.ReadTimeout=30000
#连接时长
ribbon.ConnectTimeout=50000
#响应超过时长,进行熔断(熔断超时需要大于读取时长及连接时长)
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=60000
################ 链路追踪 ################
#使用web方式传输信息
spring.zipkin.sender.type=web
#链路追踪服务的地址
spring.zipkin.base-url=${impp.console.ip}
#追踪深度百分比1是全部
spring.sleuth.sampler.probability=1.0

@ -1,126 +1,94 @@
#项目端口 #项目端口
server.port=58100 server.port=58100
#本机ip #链路追踪zipkin控制台ip地址
impp.server.ip=192.168.1.56 impp.console.ip=http://192.168.1.56:8010
#console控制台服务zipkin追踪全路径 #服务注册中心(多注册中心逗号分隔)
impp.console.ip=http://cst.estsh.com impp.cluster.regist.center=http://192.168.1.56:8000/eureka/
#日志默认使用log4j2
################ 功能配置1 ################ logging.config=classpath:log4j2-spring-prod.xml
#若无法连接注册中心,是否需要一直检测加入
impp.cluster.fetch=true ########平台相关参数##########
#服务注册中心 #是否开启redis缓存
impp.cluster.regist.center=http://regt.estsh.com/eureka/ impp.config.redis=true
#多注册中心 #是否开启rabbitMQ
#impp.cluster.regist.center=http://192.168.1.20:8000/eureka/,http://192.168.1.20:8001/eureka/ impp.config.rabbitmq=true
#是否开启swagger
################ 功能配置2 ################ impp.config.swagger=true
#是否允许前端跨域提交impp.web.cross.hosts #是否开启websocket
impp.web.cross = true impp.config.websocket=true
#是否开启文件服务
################ 授权过滤配置 ################ impp.config.fastdfs=true
#用户登陆路径 #是否对发布服务进行详细日志分析
filter.shiro.user.loginuri = /login impp.log.detail.controller=true
#系统管理员登陆路径 #是否对调用服务进行详细日志分析
filter.shiro.admin.loginuri = /salogin impp.log.detail.service=true
#运维人员登陆路径
filter.shiro.saadmin.loginuri = /salogin
#用户授权过滤路径
filter.shiro.user.filteruri = /impp/**
#用户授权过滤路径
filter.shiro.admin.filteruri = /adoperate/*
#用户授权过滤路径
filter.shiro.saadmin.filteruri = /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
################ 链路追踪 ################
#使用web方式传输信息
spring.zipkin.sender.type=web
#链路追踪服务的地址
spring.zipkin.base-url=${impp.console.ip}
#追踪深度百分比1是全部
spring.sleuth.sampler.probability=1.0
################ 日志据源 ################ ################ 队列处理 ################
spring.data.mongodb.database=testMongoDBSource #站内信
spring.data.mongodb.uri=192.168.1.55:27017 impp.mq.queue.letter=true
spring.data.mongodb.username=sa #邮件
spring.data.mongodb.password=i3plus impp.mq.queue.mail=true
spring.data.mongodb.port=27017 #定时任务
impp.mq.queue.schedule=true
################ 主数据源 ################ #SWEB通知处理队列
impp.mq.queue.sweb.notice=true
################################ 数据库相关设置 ################################
# 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=3
##oracle## spring.datasource.max-idle=3
#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://192.168.1.55:3308/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8 impp.write.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
impp.write.datasource.username=impp_i3_core_user impp.write.datasource.username=impp_i3_core_user
impp.write.datasource.password=impp_i3_core_pwd 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://192.168.1.55:3308/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8 impp.read.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/impp_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
impp.read.datasource.username=impp_i3_core_user impp.read.datasource.username=impp_i3_core_user
impp.read.datasource.password=impp_i3_core_pwd impp.read.datasource.password=impp_i3_core_pwd
################ 日志数据源 ################
spring.data.mongodb.database=mongoDBSource
spring.data.mongodb.uri=192.168.1.55: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://192.168.1.55:3308/impp_i3_schedule?autoReconnect=true&useSSL=false&characterEncoding=utf-8 impp.schedule.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/impp_i3_schedule?autoReconnect=true&useSSL=false&characterEncoding=utf-8
impp.schedule.datasource.username=impp_i3_schedule_user impp.schedule.datasource.username=impp_i3_schedule_user
impp.schedule.datasource.password=impp_i3_schedule_pwd impp.schedule.datasource.password=impp_i3_schedule_pwd
impp.schedule.datasource.max-connections=20 impp.schedule.datasource.max-connections=20
@ -136,49 +104,71 @@ impp.schedule.thread-count=10
impp.schedule.thread-priority=5 impp.schedule.thread-priority=5
################ 数据池设置 ################
spring.datasource.maximum-pool-size=10
spring.datasource.max-active=3
spring.datasource.max-idle=3
spring.datasource.min-idle=1
spring.datasource.initial-size=1
spring.datasource.max-wait=10000
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
################ JPA设置设置 ################ ################################ 其他功能设置 ################################
# mysql #redisIP
spring.jpa.database=MYSQL redis.hostName=192.168.1.55
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect #端口号
##Sql-server## redis.port=16376
#spring.jpa.database=sql_server #如果有密码
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServerDialect redis.password=
##oracle## ##其他redis配置需要调整的加在此处
#spring.jpa.database=oracle ################## rabbitMQ配置 ####################
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.Oracle10gDialect spring.rabbitmq.vhost=/
spring.rabbitmq.host=192.168.1.55
spring.rabbitmq.port=5672
spring.rabbitmq.username=estsh
spring.rabbitmq.password=estsh123
##其他rabbitMq配置需要调整的加在此处
# mysql ################## fastDFS配置 ####################
spring.datasource.validationQuery=SELECT 1 #服务器配置
##Sql-server## fastdfs.tracker_servers=192.168.1.56:7031
# spring.datasource.validationQuery=SELECT 1 # 文件展示地址
##oracle## fastdfs.http.ui.host=http://dfs.estsh.com
# 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
spring.jpa.properties.hibernate.hbm2ddl.auto=update
#是否显示sql
spring.jpa.show-sql=true
################ MQ队列处理 ################
# 站内信 ################ 微服配置 ################
impp.mq.queue.letter = true #是否进行健康检查
# 邮件 eureka.client.healthcheck.enabled=true
impp.mq.queue.mail = true #若无法连接注册中心,是否需要一直检测加入
# 定时任务 impp.cluster.fetch=true
impp.mq.queue.schedule = true #集群名
# SWEB通知处理队列 eureka.instance.metadata-map.cluster=impp_cluster
impp.mq.queue.sweb.notice = true #(参数配置)注册中心地址 -》 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
################ 检测机制 ################
#心跳间隔周期宕机限制30秒没反应视为宕机
eureka.instance.lease-expiration-duration-in-seconds=30
#心跳周期
eureka.instance.lease-renewal-interval-in-seconds=20
################ 熔断配置 ################
#重试
ribbon.maxAutoRetries=2
#读取数据时长
ribbon.ReadTimeout=30000
#连接时长
ribbon.ConnectTimeout=50000
#响应超过时长,进行熔断(熔断超时需要大于读取时长及连接时长)
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=60000
################ 链路追踪 ################
#使用web方式传输信息
spring.zipkin.sender.type=web
#链路追踪服务的地址
spring.zipkin.base-url=${impp.console.ip}
#追踪深度百分比1是全部
spring.sleuth.sampler.probability=1.0

@ -1,19 +1,22 @@
#项目名称 #本机ip
spring.application.name=${project.name} impp.server.ip=192.168.1.56
#使用配置 #使用配置
spring.profiles.active=dev spring.profiles.active=dev
######### 自定义参数 #########
#项目描述信息swagger中显式中文使用uncode转码 #项目描述信息swagger中显式中文使用uncode转码
desc.application.name=\u6838\u5fc3\u7ba1\u7406\u540e\u53f0 desc.application.name=\u6838\u5fc3\u7ba1\u7406\u540e\u53f0
######### 自定义参数 #########
#项目名称
spring.application.name=${project.name}
#当前项目版本 #当前项目版本
version=${project.version} version=${project.version}
#解决程序读配置文件乱码问题 #解决程序读配置文件乱码问题
spring.message.encoding=UTF-8 spring.message.encoding=UTF-8
######## 通用设置 #######
#日志默认使用log4j2 #启动时加载预加载controller
logging.config=classpath:log4j2.xml spring.mvc.servlet.load-on-startup=1
#是否允许前端跨域提交impp.web.cross.hosts
impp.web.cross = true
#上传单个文件大小 #上传单个文件大小
spring.servlet.multipart.max-file-size=1MB spring.servlet.multipart.max-file-size=1MB
@ -45,5 +48,25 @@ impp.app.pojo-repository=${impp.app.pojo-packages}.**.repository
#mongodb资源仓go #mongodb资源仓go
impp.app.pojo-mongo-repository=${impp.app.pojo-packages}.**.repositorymon impp.app.pojo-mongo-repository=${impp.app.pojo-packages}.**.repositorymon
###### 启动时加载预加载controller ###### ################ 授权过滤配置 ################
spring.mvc.servlet.load-on-startup=1 #用户登陆路径
filter.shiro.user.loginuri = /login
#系统管理员登陆路径
filter.shiro.admin.loginuri = /salogin
#运维人员登陆路径
filter.shiro.saadmin.loginuri = /salogin
#用户授权过滤路径
filter.shiro.user.filteruri = /impp/operate/**
#用户授权过滤路径
filter.shiro.admin.filteruri = /impp/adoperate/*
#用户授权过滤路径
filter.shiro.saadmin.filteruri = /impp/saoperate/*
################ redis辅助设置 ################
#资源信息以及异常、授权功能、按钮、模块等
redis.resource.db=0
#用户会话缓存库
redis.session.db=1
#系统全局缓存库,存放平台核心数据缓存
redis.core.db=2

@ -0,0 +1,27 @@
#tracker服务器ip
fastdfs.tracker_servers=192.168.1.56:7031
# tracker的http端口
fastdfs.http_tracker_http_port=7031
# 使用自定义工具获取文件展示地址
fastdfs.http.ui.host=http://dfs.estsh.com
#密码
#fastdfs.http.secret_key=
#连接超时
fastdfs.connect_timeout_in_seconds=5
#传输超时
fastdfs.network_timeout_in_seconds=60
fastdfs.charset=UTF-8
# token 防盗链功能
fastdfs.http_anti_steal_token=no
# V2.0引入的这个参数工作线程数通常设置为CPU数
#fastdfs.work_threads=4
#设置为true表示开启token验证
#http.anti_steal.check_token=true
#设置token失效的时间单位为秒(s)
#http.anti_steal.token_ttl=1800
#密钥跟客户端配置文件的fastdfs.http_secret_key保持一致
#http.anti_steal.secret_key=FASTDFS1234567890
#如果token检查失败返回的页面
#http.anti_steal.token_check_fail=/ljzsg/fastdfs/page/403.html

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<configuration status="WARN">
<!--全局参数-->
<Properties>
<Property name="log4j2.level" value="INFO"/>
<Property name="info_pattern">[%p] %d{yyyy-MM-dd HH:mm:ss-SSS} %c(%M:%L) 信息:%m%n</Property>
<Property name="system_log_pattern">[SYS-%p] %d{yyyy-MM-dd HH:mm:ss-SSS} 系统:%m ( %F -> %M:%L)%n</Property>
</Properties>
<Loggers>
<Root level="${log4j2.level}">
<AppenderRef ref="console"></AppenderRef>
</Root>
<!--系统提示信息-->
<Logger name="system_log" level="${log4j2.level}" additivity="false">
<AppenderRef ref="system_log_console"></AppenderRef>
</Logger>
</Loggers>
<Appenders>
<Console name="console" target="SYSTEM_OUT" follow="true">
<!--控制台只输出level及以上级别的信息-->
<ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout>
<Pattern>${info_pattern}</Pattern>
</PatternLayout>
</Console>
<Console name="system_log_console" target="SYSTEM_OUT" follow="true">
<ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout>
<Pattern>${system_log_pattern}</Pattern>
</PatternLayout>
</Console>
</Appenders>
</configuration>

@ -2,7 +2,9 @@
<configuration status="WARN"> <configuration status="WARN">
<!--全局参数--> <!--全局参数-->
<Properties> <Properties>
<!-- %d{yyyy-MM-dd HH:mm:ss,SSS} %5p %c{1}:%L - %m%n --> <Property name="log4j2.level" value="INFO"/>
<Property name="logoInfoFilePath" value="D:/impp_logs/prod-${project.name}"/>
<Property name="logoErrorFilePath" value="D:/impp_logs/prod-${project.name}-error"/>
<Property name="pattern">[%p] %d{yyyy-MM-dd HH:mm:ss-SSS} %l 信息:%m%n</Property> <Property name="pattern">[%p] %d{yyyy-MM-dd HH:mm:ss-SSS} %l 信息:%m%n</Property>
<Property name="info_pattern">[%p] %d{yyyy-MM-dd HH:mm:ss-SSS} %c(%M:%L) 信息:%m%n</Property> <Property name="info_pattern">[%p] %d{yyyy-MM-dd HH:mm:ss-SSS} %c(%M:%L) 信息:%m%n</Property>
<Property name="system_log_pattern">[SYS-%p] %d{yyyy-MM-dd HH:mm:ss-SSS} 系统:%m ( %F -> %M:%L)%n</Property> <Property name="system_log_pattern">[SYS-%p] %d{yyyy-MM-dd HH:mm:ss-SSS} 系统:%m ( %F -> %M:%L)%n</Property>
@ -11,15 +13,12 @@
<Root level="${log4j2.level}"> <Root level="${log4j2.level}">
<AppenderRef ref="console"></AppenderRef> <AppenderRef ref="console"></AppenderRef>
<AppenderRef ref="rolling_file"></AppenderRef> <AppenderRef ref="rolling_file"></AppenderRef>
<AppenderRef ref="error_file"></AppenderRef>
</Root> </Root>
<!--系统提示信息--> <!--系统提示信息-->
<Logger name="system_log" level="${log4j2.level}" additivity="false"> <Logger name="system_log" level="${log4j2.level}" additivity="false">
<AppenderRef ref="system_log_console"></AppenderRef> <AppenderRef ref="system_log_console"></AppenderRef>
</Logger> </Logger>
<!--只将com.package.demo.controller写到文件-->
<Logger name="controller" level="${log4j2.level}" additivity="false">
<AppenderRef ref="package_file"></AppenderRef>
</Logger>
</Loggers> </Loggers>
<Appenders> <Appenders>
<Console name="console" target="SYSTEM_OUT" follow="true"> <Console name="console" target="SYSTEM_OUT" follow="true">
@ -35,22 +34,19 @@
<Pattern>${system_log_pattern}</Pattern> <Pattern>${system_log_pattern}</Pattern>
</PatternLayout> </PatternLayout>
</Console> </Console>
<!-- 同一来源的Appender可以定义多个RollingFile定义按天存储日志 -->
<RollingFile name="rolling_file" <RollingFile name="rolling_file"
fileName="${log4j2.root.path}.log" fileName="${logoInfoFilePath}.log"
filePattern="${log4j2.root.path}_%d{yyyy-MM-dd}.log"> filePattern="${logoInfoFilePath}_%d{yyyy-MM-dd}.log">
<ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/> <ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout> <PatternLayout>
<Pattern>${pattern}</Pattern> <Pattern>${pattern}</Pattern>
</PatternLayout> </PatternLayout>
<Policies> <Policies>
<TimeBasedTriggeringPolicy interval="1"/> <TimeBasedTriggeringPolicy interval="1"/>
<!--<SizeBasedTriggeringPolicy size="1 KB"/>-->
</Policies> </Policies>
</RollingFile> </RollingFile>
<File name="package_file" fileName="${log4j2.package.path}.log"> <File name="error_file" fileName="${logoErrorFilePath}.log">
<!--&lt;!&ndash;控制台只输出level及以上级别的信息onMatch其他的直接拒绝onMismatch&ndash;&gt;--> <ThresholdFilter level="WARN" onMatch="ACCEPT" onMismatch="DENY"/>
<ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout> <PatternLayout>
<Pattern>${pattern}</Pattern> <Pattern>${pattern}</Pattern>
</PatternLayout> </PatternLayout>

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8" ?>
<configuration status="WARN">
<!--全局参数-->
<Properties>
<Property name="log4j2.level" value="INFO"/>
<Property name="logoInfoFilePath" value="D:/impp_logs/test-${project.name}"/>
<Property name="logoErrorFilePath" value="D:/impp_logs/test-${project.name}-error"/>
<Property name="pattern">[%p] %d{yyyy-MM-dd HH:mm:ss-SSS} %l 信息:%m%n</Property>
<Property name="info_pattern">[%p] %d{yyyy-MM-dd HH:mm:ss-SSS} %c(%M:%L) 信息:%m%n</Property>
<Property name="system_log_pattern">[SYS-%p] %d{yyyy-MM-dd HH:mm:ss-SSS} 系统:%m ( %F -> %M:%L)%n</Property>
</Properties>
<Loggers>
<Root level="${log4j2.level}">
<AppenderRef ref="console"></AppenderRef>
<AppenderRef ref="rolling_file"></AppenderRef>
<AppenderRef ref="error_file"></AppenderRef>
</Root>
<!--系统提示信息-->
<Logger name="system_log" level="${log4j2.level}" additivity="false">
<AppenderRef ref="system_log_console"></AppenderRef>
</Logger>
</Loggers>
<Appenders>
<Console name="console" target="SYSTEM_OUT" follow="true">
<!--控制台只输出level及以上级别的信息-->
<ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout>
<Pattern>${info_pattern}</Pattern>
</PatternLayout>
</Console>
<Console name="system_log_console" target="SYSTEM_OUT" follow="true">
<ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout>
<Pattern>${system_log_pattern}</Pattern>
</PatternLayout>
</Console>
<RollingFile name="rolling_file"
fileName="${logoInfoFilePath}.log"
filePattern="${logoInfoFilePath}_%d{yyyy-MM-dd}.log">
<ThresholdFilter level="DEBUG" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout>
<Pattern>${pattern}</Pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy interval="1"/>
</Policies>
</RollingFile>
<File name="error_file" fileName="${logoErrorFilePath}.log">
<ThresholdFilter level="WARN" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout>
<Pattern>${pattern}</Pattern>
</PatternLayout>
</File>
</Appenders>
</configuration>

@ -27,10 +27,6 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version> <java.version>1.8</java.version>
<spring-cloud.version>Finchley.RELEASE</spring-cloud.version> <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
<log4j2.level>INFO</log4j2.level>
<log4j2.root.path>../logs/${project.name}</log4j2.root.path>
<log4j2.error.path>../logs/${project.name}-error</log4j2.error.path>
<log4j2.package.path>../logs/${project.name}-controller</log4j2.package.path>
<maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version> <maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version>
<maven-jar-plugin.version>2.6</maven-jar-plugin.version> <maven-jar-plugin.version>2.6</maven-jar-plugin.version>
<maven-compiler-plugin.version>2.1</maven-compiler-plugin.version> <maven-compiler-plugin.version>2.1</maven-compiler-plugin.version>

Loading…
Cancel
Save