Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
7377271d
Commit
7377271d
authored
Jun 21, 2024
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-jingfeng' into 'master'
holo配置修改 See merge request
!1934
parents
024ab831
4625c70f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
HoloDataSource.java
...anage/service/dao/mapper/content/holo/HoloDataSource.java
+3
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/content/holo/HoloDataSource.java
View file @
7377271d
...
@@ -107,10 +107,10 @@ public class HoloDataSource implements InitializingBean, DisposableBean {
...
@@ -107,10 +107,10 @@ public class HoloDataSource implements InitializingBean, DisposableBean {
}
}
private
Pair
<
String
,
String
>
getHoloAuth
()
{
private
Pair
<
String
,
String
>
getHoloAuth
()
{
//{"appId":"ops_key","cluster":"default","namespaceName":"
application","configurations":{"aliyun-key":"{\n\"LTAI5tGn2YicKmgcyTiJDV59\":\"iOp7cICESPZIvIjJRtTmLnCd4gT1Qy\"\n}"},"releaseKey":"20240412153514-b260f04ffbe11f4e
"}
//{"appId":"ops_key","cluster":"default","namespaceName":"
key_config","configurations":{"demo_aliyun_key":"{\n \"LTAI5tMF2pZGShdULEYbyntc\": \"pC16FjCeklpXg18duNhJsEF91FvxpE\"\n}"},"releaseKey":"20240604165817-7632f04ffbe11f53
"}
String
result
=
HttpUtil
.
get
(
"http://
proapollo.gicdev.com:7080/configs/ops_key/default/application?key=aliyun-key
"
,
10000
);
String
result
=
HttpUtil
.
get
(
"http://
10.0.100.2:7080/configs/ops_key/default/key_config
"
,
10000
);
JSON
json
=
JSONUtil
.
parse
(
result
);
JSON
json
=
JSONUtil
.
parse
(
result
);
String
authInfo
=
json
.
getByPath
(
"configurations.
aliyun-
key"
,
String
.
class
);
String
authInfo
=
json
.
getByPath
(
"configurations.
demo_aliyun_
key"
,
String
.
class
);
JSON
authJson
=
JSONUtil
.
parseObj
(
authInfo
);
JSON
authJson
=
JSONUtil
.
parseObj
(
authInfo
);
Map
<
String
,
String
>
map
=
authJson
.
toBean
(
new
TypeReference
<
Map
<
String
,
String
>>()
{});
Map
<
String
,
String
>
map
=
authJson
.
toBean
(
new
TypeReference
<
Map
<
String
,
String
>>()
{});
for
(
Map
.
Entry
<
String
,
String
>
entry
:
map
.
entrySet
())
{
for
(
Map
.
Entry
<
String
,
String
>
entry
:
map
.
entrySet
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment