Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
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
雷紫添
xzxt-api-report
Commits
172fffab
Commit
172fffab
authored
Mar 03, 2021
by
雷紫添
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加nginx端口
parent
8340db88
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
src/main/java/com/founder/common/IpADressLock.java
+3
-1
src/main/resources/application-dev.yml
+1
-0
No files found.
src/main/java/com/founder/common/IpADressLock.java
View file @
172fffab
...
...
@@ -15,6 +15,8 @@ public class IpADressLock {
@Value
(
value
=
"${ftpserverip}"
)
private
String
ftpserverip
;
@Value
(
value
=
"${nginxport}"
)
private
String
nginxport
;
@Value
(
value
=
"${ftpfilePath}"
)
private
String
ftpfilePath
;
@Value
(
value
=
"${ipaddress}"
)
...
...
@@ -38,7 +40,7 @@ public class IpADressLock {
}
RestTemplate
restTemplate
=
new
RestTemplate
();
String
result
=
restTemplate
.
getForObject
(
"http://"
+
ftpserverip
+
ftpfilePath
+
ipaddress
+
".js"
,
String
.
class
);
String
result
=
restTemplate
.
getForObject
(
"http://"
+
ftpserverip
+
nginxport
+
ftpfilePath
+
ipaddress
+
".js"
,
String
.
class
);
List
<
IpADdress
>
resultList
=
JSONArray
.
parseArray
(
result
,
IpADdress
.
class
);
...
...
src/main/resources/application-dev.yml
View file @
172fffab
...
...
@@ -24,6 +24,7 @@ spring:
ftpserverip
:
47.92.129.99
nginxport
:
9053
ftpport
:
4546
ftpuser
:
ftpuser
ftppass
:
fou3rfnder4SD1
...
...
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