Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sap-service
Project
Project
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
曲欣亮
sap-service
Commits
1ac8743e
Commit
1ac8743e
authored
Aug 12, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
42945b67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
TestController.java
src/main/java/com/egolm/sso/TestController.java
+4
-4
application.yml
src/main/resources/application.yml
+1
-0
No files found.
src/main/java/com/egolm/sso/TestController.java
View file @
1ac8743e
...
...
@@ -24,8 +24,8 @@ import com.egolm.sso.util.DateUtil;
@RequestMapping
public
class
TestController
{
@Value
(
"${
spring.profiles.active
}"
)
private
String
profiles
;
@Value
(
"${
isUsedTestController
}"
)
private
boolean
isUsedTestController
;
@Autowired
private
CommonService
common
;
...
...
@@ -40,8 +40,8 @@ public class TestController {
SI004INVENTORYSyncOutServiceTask
si004Task
;
private
void
verify
()
{
if
(!
profiles
.
contains
(
"dev"
)
)
{
throw
new
RuntimeException
(
"
spring.profiles.active="
+
profiles
+
",
The test interface has been closed."
);
if
(!
isUsedTestController
)
{
throw
new
RuntimeException
(
"The test interface has been closed."
);
}
}
...
...
src/main/resources/application.yml
View file @
1ac8743e
isUsedTestController
:
false
xmlRoot
:
xml
systemId
:
system
WSDLPATH
:
WSDL
...
...
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