修改文件策略类配置将文件存储到redis中

This commit is contained in:
renkaige
2018-10-09 10:26:22 +08:00
parent 9d6f4f4a43
commit 1ef91b5592
5 changed files with 10 additions and 7 deletions

View File

@@ -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>

View File

@@ -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("]", "");

View File

@@ -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>

View File

@@ -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

View File

@@ -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];&amp;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];&amp;nbsp;0;\n</p:valueExpression>
</p:expressions>
<p:sequences>
<p:operation>1</p:operation>