Commit 1ac8743e authored by Quxl's avatar Quxl

x

parent 42945b67
...@@ -24,8 +24,8 @@ import com.egolm.sso.util.DateUtil; ...@@ -24,8 +24,8 @@ import com.egolm.sso.util.DateUtil;
@RequestMapping @RequestMapping
public class TestController { public class TestController {
@Value("${spring.profiles.active}") @Value("${isUsedTestController}")
private String profiles; private boolean isUsedTestController;
@Autowired @Autowired
private CommonService common; private CommonService common;
...@@ -40,8 +40,8 @@ public class TestController { ...@@ -40,8 +40,8 @@ public class TestController {
SI004INVENTORYSyncOutServiceTask si004Task; SI004INVENTORYSyncOutServiceTask si004Task;
private void verify() { private void verify() {
if(!profiles.contains("dev")) { if(!isUsedTestController) {
throw new RuntimeException("spring.profiles.active=" + profiles + ", The test interface has been closed."); throw new RuntimeException("The test interface has been closed.");
} }
} }
......
isUsedTestController: false
xmlRoot: xml xmlRoot: xml
systemId: system systemId: system
WSDLPATH: WSDL WSDLPATH: WSDL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment