leisure.springboot.web.swagger.SwaggerCondition Maven / Gradle / Ivy
The newest version!
package leisure.springboot.web.swagger;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;
public class SwaggerCondition implements Condition {
@Override
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
return SwaggerManager.isEnableSwagger();
}
}