修改文件策略类配置将文件存储到redis中
This commit is contained in:
6
pom.xml
6
pom.xml
@@ -14,9 +14,9 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>war</packaging>
|
||||
<name>galaxy</name>
|
||||
<groupId>com.nis.springmvc</groupId>
|
||||
<artifactId>galaxy</artifactId>
|
||||
<name>galaxy-service</name>
|
||||
<groupId>com.nis.galaxy</groupId>
|
||||
<artifactId>galaxy-service</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<!-- 仓库地址构建 -->
|
||||
<repositories>
|
||||
|
||||
@@ -90,7 +90,7 @@ public class ConfigJedisServiceimpl implements ConfigRedisService {
|
||||
}
|
||||
StringBuffer valBF = new StringBuffer();
|
||||
String[] valSplit = maatXmlExpr.getValueExpression().split(";");
|
||||
List<String> urlList = new ArrayList<String>();
|
||||
// List<String> urlList = new ArrayList<String>();
|
||||
for (String valStr : valSplit) {
|
||||
if (!StringUtils.isEmpty(valStr) && valStr.trim().startsWith("[")) {
|
||||
valStr = valStr.trim().replace("[", "").replace("]", "");
|
||||
|
||||
@@ -161,6 +161,7 @@
|
||||
<t:field fieldType="String" srcName="contentType" dstName="content_type" isRequired="true"/>
|
||||
<t:field fieldType="Number" srcName="contentLength" dstName="content_length" isRequired="true"/>
|
||||
<t:field fieldType="String" srcName="filePath" dstName="file_path" isRequired="true"/>
|
||||
<t:field fieldType="String" srcName="filePath" dstName="redisFile_file_path" isRequired="true"/>
|
||||
<t:field fieldType="Number" srcName="isValid" dstName="is_valid" isRequired="true" regexp="[1]"/>
|
||||
<t:field fieldType="Date" srcName="opTime" dstName="op_time" isRequired="true"/>
|
||||
</t:commonSource>
|
||||
|
||||
@@ -77,7 +77,7 @@ jdbc.clickhouse.driver=ru.yandex.clickhouse.ClickHouseDriver
|
||||
#域名测试环境
|
||||
#jdbc.clickhouse.url=jdbc:clickhouse://clickhouse.baifendian.com:80/k18_ods
|
||||
#亦庄演示环境
|
||||
jdbc.clickhouse.url=jdbc:clickhouse://10.3.45.5:8123/k18_ods
|
||||
jdbc.clickhouse.url=jdbc:clickhouse://10.3.45.5:8123/k18_ods?socket_timeout=90000
|
||||
jdbc.clickhouse.username=
|
||||
jdbc.clickhouse.key=
|
||||
jdbc.clickhouse.password=
|
||||
@@ -123,7 +123,9 @@ druid.log.filters=stat
|
||||
#########################################################################
|
||||
##minio地址
|
||||
#########################################################################
|
||||
##minio的地址,注意前面的http://不要忘记写
|
||||
##华严minio的地址,注意前面的http://不要忘记写
|
||||
#minio_url=http://192.168.10.61:9000
|
||||
##元辰鑫外网minio的地址,注意前面的http://不要忘记写
|
||||
minio_url=http://192.168.10.205:9000
|
||||
##minio的accessKey
|
||||
minio_accessKey=minio
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
<p:maatType service="608">
|
||||
<p:expressions>
|
||||
<p:keyExpression>EFFECTIVE_RULE;:;{un_maat_table_name};,;[cfg_id]</p:keyExpression>
|
||||
<p:valueExpression>[cfg_id];\t;[service];\t;[file_desc];\t;[content_type];\t;[content_length];\t;[file_path];\t;[is_valid];\t;[op_time];&nbsp;0;\n</p:valueExpression>
|
||||
<p:valueExpression>[cfg_id];\t;[service];\t;[file_desc];\t;[content_type];\t;[content_length];\t;[file_path];\t;[is_valid];\t;[redisFile_file_path];\t;[op_time];&nbsp;0;\n</p:valueExpression>
|
||||
</p:expressions>
|
||||
<p:sequences>
|
||||
<p:operation>1</p:operation>
|
||||
|
||||
Reference in New Issue
Block a user