Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
Nse
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
Nse
Commits
a81d61db
Commit
a81d61db
authored
Aug 21, 2025
by
wuchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改配置文件
parent
04ad88a4
全部展开
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
42 行增加
和
17 行删除
+42
-17
pom.xml
+2
-0
src/main/java/com/chenyang/nse/bussiness/controller/core/EncryptionConfigController.java
+2
-2
src/main/java/com/chenyang/nse/bussiness/controller/core/SearchSensitiveDataController.java
+32
-10
src/main/java/com/chenyang/nse/bussiness/controller/core/encryption/TCoreEncryptionController.java
+0
-0
src/main/java/com/chenyang/nse/bussiness/service/core/impl/TdataProjectServiceImpl.java
+1
-1
src/main/resources/config.properties
+5
-4
src/main/resources/config.test.bak.properties
+0
-0
没有找到文件。
pom.xml
View file @
a81d61db
...
@@ -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>
...
...
src/main/java/com/chenyang/nse/bussiness/controller/core/EncryptionConfigController.java
View file @
a81d61db
...
@@ -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=http
s"
);
configContent
.
append
(
"gateway.protocol=http
"
);
// 这里和下面第二行暂时改成 http
configContent
.
append
(
"\r\n"
);
configContent
.
append
(
"\r\n"
);
configContent
.
append
(
"gateway.host="
+
gatewayUrl
.
replace
(
"http
s
://"
,
""
).
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"
);
...
...
src/main/java/com/chenyang/nse/bussiness/controller/core/SearchSensitiveDataController.java
View file @
a81d61db
...
@@ -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
);
}
}
}
}
...
...
src/main/java/com/chenyang/nse/bussiness/controller/core/encryption/TCoreEncryptionController.java
View file @
a81d61db
差异被折叠。
点击展开。
src/main/java/com/chenyang/nse/bussiness/service/core/impl/TdataProjectServiceImpl.java
View file @
a81d61db
...
@@ -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
.
sav
e
(
project
);
this
.
tCoreDataProjectDao
.
updat
e
(
project
);
}
}
public
String
queryEdtionIdByProId
(
String
projectid
)
{
public
String
queryEdtionIdByProId
(
String
projectid
)
{
...
...
src/main/resources/config.properties
View file @
a81d61db
...
@@ -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
...
...
src/main/resources/config.test.bak.properties
0 → 100644
View file @
a81d61db
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论