【fix sonar】JeroCloudCondition文件
This commit is contained in:
+1
-4
@@ -14,9 +14,6 @@ public class JeroCloudCondition implements Condition {
|
|||||||
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
|
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
|
||||||
Object object = context.getEnvironment().getProperty(CommonConstant.CLOUD_SERVER_KEY);
|
Object object = context.getEnvironment().getProperty(CommonConstant.CLOUD_SERVER_KEY);
|
||||||
//如果没有服务注册发现的配置 说明是单体应用
|
//如果没有服务注册发现的配置 说明是单体应用
|
||||||
if(object==null){
|
return object != null;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user