Commit a81d61db by wuchao

更改配置文件

parent 04ad88a4
......@@ -1174,6 +1174,8 @@
<artifactId>lombok</artifactId>
</exclude>
</excludes>
<!-- 关键配置:将 system scope 的依赖打包进去 -->
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
......
......@@ -578,9 +578,9 @@ public class EncryptionConfigController {
configContent.append("\r\n");
configContent.append("#gateway config");
configContent.append("\r\n");
configContent.append("gateway.protocol=https");
configContent.append("gateway.protocol=http"); // 这里和下面第二行暂时改成 http
configContent.append("\r\n");
configContent.append("gateway.host=" + gatewayUrl.replace("https://", "").replace(":", "").replace(gatewayPort, ""));
configContent.append("gateway.host=" + gatewayUrl.replace("http://", "").replace(":", "").replace(gatewayPort, ""));
configContent.append("\r\n");
configContent.append("gateway.port=" + gatewayPort);
configContent.append("\r\n");
......
......@@ -1008,23 +1008,45 @@ public class SearchSensitiveDataController {
String schemaname = map.get("schemaname");
String dbType = map.get("dbType");
String dataSystemId = map.get("dataSystemId");
List<ComboboxVO> result = new ArrayList<>();
ArrayList<ComboboxVO> result = new ArrayList<ComboboxVO>();
try {
return RespHelper.successResp(result);
} catch (Exception e) {
return RespHelper.successResp(result);
} finally{ Exception exception = null;
List<ComboboxVO> queryresult = new ArrayList<>();
if (dbType.equals("LOCALFILE")) {
TCoreDatasystem ta = this.dataSystemService.queryDataSystemById(dataSystemId);
List<File> filelist = new ArrayList();
switch (ta.getDbtype()) {
case "LOCALFILE": {
filelist = FileTool.getFileList((String)ta.getLocaldir());
break;
}
default: {
result.add(new ComboboxVO("", ""));
}
}
for (File file : filelist) {
result.add(new ComboboxVO(file.toString(), file.toString()));
}
} else {
List list = this.dataSystemService.queryShemas(dbType, dataSystemId);
if (list.size() != 0) {
result.addAll(list);
}
}
}
catch (Exception e) {
e.printStackTrace();
}
finally {
ArrayList<ComboboxVO> queryresult = new ArrayList<ComboboxVO>();
if (schemaname != null && !schemaname.equals("")) {
ComboboxVO schemaValue = null;
for (int i = 0; i < result.size(); i++) {
schemaValue = result.get(i);
if (schemaValue.getValue().toLowerCase().contains(schemaname.toLowerCase())) {
for (int i = 0; i < result.size(); ++i) {
schemaValue = (ComboboxVO)result.get(i);
if (!schemaValue.getValue().toLowerCase().contains(schemaname.toLowerCase())) continue;
queryresult.add(schemaValue);
}
}
return RespHelper.successResp(queryresult);
}
return RespHelper.successResp(result);
}
}
......
......@@ -1086,7 +1086,7 @@ public class TdataProjectServiceImpl implements TdataProjectService {
this.tCoreProjectFindruleDao.save(obj);
}
this.tCoreDataProjectDao.save(project);
this.tCoreDataProjectDao.update(project);
}
public String queryEdtionIdByProId(String projectid) {
......
......@@ -2,11 +2,11 @@
#IP信息
#jdbc.host=192.168.2.127
#正式环境
jdbc.host=127.0.0.1
jdbc.host=demo.docmis.cn
#jdbc.host=192.168.2.228
#端口信息
#jdbc.port=54321
jdbc.port=3306
jdbc.port=23500
#数据库实例
jdbc.kingbase.dbname=security
#jdbc.dbname=encryption_gateway
......@@ -14,7 +14,8 @@ jdbc.kingbase.dbname=security
#如果配置数据库类型是H2,则jdbc.dbname的值是public
jdbc.dbname=public
#jdbc.dbname=encryption
basePath=/home/trustz
#basePath=/home/trustz
basePath=D:/trustz
maskingPath=/home/masking
#jdbc-mysql
#jdbc.driver=com.mysql.jdbc.Driver
......@@ -167,7 +168,7 @@ loginfilepath = D:/login.properties
app_alert_interface = http://127.0.0.1:8180/core/applog/sendAlertInfo
db_alert_interface = http://127.0.0.1:8180/core/dblog/sendAlertInfo
# 邮件接收人
mailTo = shuyi666@aliyun.com
mailTo = dhdhhd@aliyun.com
# 告警end
# 审计日志begin
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论