Commit a81d61db by wuchao

更改配置文件

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