Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
96431d8d
Commit
96431d8d
authored
Feb 05, 2018
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新系统环境参数,改用-Denv=pro替换-Dtest=true
parent
f8e58a27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
pom.xml
pom.xml
+1
-1
IPUtil.java
src/main/java/cn/quantgroup/xyqb/util/IPUtil.java
+3
-2
No files found.
pom.xml
View file @
96431d8d
...
...
@@ -253,7 +253,7 @@
<dependency>
<groupId>
cn.quantgroup
</groupId>
<artifactId>
commons
</artifactId>
<version>
0.0.
5
</version>
<version>
0.0.
7
</version>
<scope>
compile
</scope>
</dependency>
...
...
src/main/java/cn/quantgroup/xyqb/util/IPUtil.java
View file @
96431d8d
package
cn
.
quantgroup
.
xyqb
.
util
;
import
cn.quantgroup.tech.security.TechSecurityUtil
;
import
cn.quantgroup.tech.util.TechEnvironment
;
import
com.google.common.collect.Sets
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
...
...
@@ -29,8 +31,7 @@ public class IPUtil {
String
[]
ips
=
{
"172.16."
,
"172.20."
,
"172.30."
,
"192.168.3."
,
"192.168.4."
};
WHITE_ADDRESS
.
addAll
(
Arrays
.
asList
(
ips
));
//系统环境
String
jvmTest
=
System
.
getProperty
(
"test"
);
if
(
Boolean
.
valueOf
(
jvmTest
)){
if
(
TechEnvironment
.
isPro
()){
WHITE_ADDRESS
.
add
(
"192.168."
);
WHITE_ADDRESS
.
add
(
"10."
);
WHITE_ADDRESS
.
add
(
LOCAL_ADDRESS
);
...
...
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