diff --git a/pom.xml b/pom.xml index 3a267da..ff5fb3c 100644 --- a/pom.xml +++ b/pom.xml @@ -389,7 +389,7 @@ mysql mysql-connector-java - 5.1.36 + 5.1.35 diff --git a/src/main/resources/applicationContext-mybatis.xml b/src/main/resources/applicationContext-mybatis.xml index 5eead10..eb7a2e8 100644 --- a/src/main/resources/applicationContext-mybatis.xml +++ b/src/main/resources/applicationContext-mybatis.xml @@ -32,30 +32,76 @@ class="org.springframework.jdbc.datasource.DriverManagerDataSource"> - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/applicationContext-redis.xml.astana b/src/main/resources/applicationContext-redis.xml.astana new file mode 100644 index 0000000..a6a25ed --- /dev/null +++ b/src/main/resources/applicationContext-redis.xml.astana @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + ${redis.hostAndPort1} + ${redis.hostAndPort2} + ${redis.hostAndPort3} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/jdbc.properties.astana b/src/main/resources/jdbc.properties.astana new file mode 100644 index 0000000..c47f807 --- /dev/null +++ b/src/main/resources/jdbc.properties.astana @@ -0,0 +1,126 @@ +#==========日志库 Mysql======================= +jdbc.log.driver=com.mysql.jdbc.Driver +#阿斯坦纳 +jdbc.log.url=jdbc:mysql://10.0.4.22:8066/galaxy-service?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull +jdbc.log.username=mycat +#实际密码ceiec2018! +jdbc.log.key=73FU0t+Z8+PUxD/PArzvkQ== +jdbc.log.password=lKZSz7h4AIhgKJb2l2GBMw== + +#==================日志查询hive数据源信息========================== +#星汉hive数据源 +jdbc.hive.driver=org.apache.hive.jdbc.HiveDriver +jdbc.hive.DBName=singhand_ntcstore +jdbc.hive.url=jdbc:hive2://218.76.55.165:30000/singhand_ntcstore +jdbc.hive.username=singhand +jdbc.hive.key=uKYTzWsRN1+X5Tt3W+CA4A== +jdbc.hive.password=f+IYYX73TPEqUp3fxLzxow== + +bonecp.hive.idleMaxAgeInMinutes=60 +bonecp.hive.idleConnectionTestPeriodInMinutes=240 +bonecp.hive.maxConnectionsPerPartition=20 +bonecp.hive.minConnectionsPerPartition=10 +bonecp.hive.partitionCount=3 +bonecp.hive.acquireIncrement=5 +bonecp.hive.statementsCacheSize=100 + +#################日志查询clickhouse数据源信息############# + +#日志查询是否使用clickhouse,否则使用hive +isUseClickHouse=true +##clickhouse数据库名称 +jdbc.clickHouse.DBName=k18_ods +jdbc.clickhouse.driver=ru.yandex.clickhouse.ClickHouseDriver +#阿斯坦纳百分点的连接ip,需要配置域名与ip的对应关系10.4.41.109 clickhouse-read-ys.com +jdbc.clickhouse.url=jdbc:clickhouse://clickhouse-read-ys.com:80/k18_ods?socket_timeout=90000 +jdbc.clickhouse.username=wall +#实际密码k18 +jdbc.clickhouse.key=jT4yKPwwg2J4JE/KUZknnA== +jdbc.clickhouse.password=XmaxnU2yLPQ5dpWjY3RDjQ== + + +#########################配置日志查询使用druid连接池######################################### +#配置初始化连接池数量 +druid.log.initialSize=5 +#配置最小连接池数量 +druid.log.minIdle=1 +#配置最大连接池数量 +druid.log.maxActive=200 +# 配置获取连接等待超时的时间 单位毫秒 +druid.log.maxWait=600000 +#使用非公平锁 +druid.log.useUnfairLock=true +#配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 +druid.log.timeBetweenEvictionRunsMillis=60000 +#配置一个连接在池中最小生存的时间,单位是毫秒 +druid.log.minEvictableIdleTimeMillis=300000 +#用来检测连接是否有效的sql,要求是一个查询语句,下面是hive的 +druid.log.hive.validationQuery=select unix_timestamp() +#用来检测连接是否有效的sql,要求是一个查询语句,下面是clickhouse的 +druid.log.clickHouse.validationQuery=show tables +#用来检测连接是否有效的sql,要求是一个查询语句,下面是mysql的 +druid.log.mysql.validationQuery=show tables +#申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效 +druid.log.testWhileIdle=true +#申请连接时执行validationQuery检测连接是否有效 +druid.log.testOnBorrow=true +#归还连接时执行validationQuery检测连接是否有效 +druid.log.testOnReturn=false +#打开PSCache,并且指定每个连接上PSCache的大小 +druid.log.poolPreparedStatements=true +#要启用PSCache,必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true。在Druid中,不会存在Oracle下PSCache占用内存过多的问题,可以把这个数值配置大一些,比如说100 +druid.log.maxOpenPreparedStatements=100 +#配置监控统计拦截的filters,去掉后监控界面sql无法统计 +druid.log.filters=stat + + +######################################################################### +##minio地址 +######################################################################### +##阿斯坦纳minio的地址,注意前面的http://不要忘记写 +minio_url=http://10.0.7.7:9000 +##minio的accessKey +minio_accessKey=minio +##minio的secretKey +minio_secretKey=123456789 +##minio的bucketName +minio_bucketName=maat-redis + + + +##################################################################################################################################### +##redis连接 +##################################################################################################################################### +#阿斯坦纳 +redis.hostAndPort1=10.0.7.1:26379 +redis.hostAndPort2=10.0.7.2:26379 +redis.hostAndPort3=10.0.7.3:26379 +redis.pass= +#最大空闲连接数 +redis.maxIdle=50 +#最大连接数 +redis.maxTotal=250 +#获取连接时的最大等待毫秒数(如果设置为阻塞时BlockWhenExhausted),如果超时就抛异常, 小于零:阻塞不确定的时间, 默认-1 +redis.maxWaitMillis=100000 +#在获取连接的时候检查有效性 +redis.testOnBorrow=true +#在归还连接的时候检查有效性 +redis.testOnReturn=true +#客户端超时时间单位是毫秒 +redis.timeout=100000 +#用于 redis.clients.jedis.JedisCluster.JedisCluster(Set, int, int, GenericObjectPoolConfig) 第三个参数 maxRedirections +#默认值是5 +#一般当此值设置过大时,容易报:Too many Cluster redirections +redis.maxRedirects=3 + +#3A-redis集群配置,如果需要执行数据同步需要在集群中执行LPUSH SyncRedisToCluster "1" +redis.cluster.host1=10.0.8.16 +redis.cluster.host2=10.0.8.17 +redis.cluster.host3=10.0.8.18 +redis.cluster.host4=10.0.8.19 +redis.cluster.host5=10.0.8.20 +redis.cluster.port1=7001 +redis.cluster.port2=7002 +redis.cluster.port3=7003 +redis.cluster.port4=7004 + diff --git a/src/main/resources/spring-mvc.xml b/src/main/resources/spring-mvc.xml index b8ec78b..dedcf6b 100644 --- a/src/main/resources/spring-mvc.xml +++ b/src/main/resources/spring-mvc.xml @@ -1,10 +1,14 @@ - + - + - + @@ -59,7 +64,8 @@ - + - + - - + @@ -83,41 +92,53 @@ - + - + - + - + - + - + - + - - - + + + - + - + @@ -137,7 +158,8 @@ - + @@ -151,7 +173,8 @@ - + @@ -177,9 +200,12 @@ - - - + + + @@ -238,14 +264,17 @@ - + - - + + @@ -276,8 +305,23 @@ - - + + + + + + com.nis.web.service.* + com.nis.web.dao.* + + + + + + diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index f99e89e..1b6c81a 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -179,6 +179,16 @@ DruidStatView com.alibaba.druid.support.http.StatViewServlet + + + loginUsername + galaxy + + + + loginPassword + k18ceiec + DruidStatView