Commit 1ac8743e authored by Quxl's avatar Quxl

x

parent 42945b67
......@@ -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.");
}
}
......
isUsedTestController: false
xmlRoot: xml
systemId: system
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