Answer the question
In order to leave comments, you need to log in
Why doesn't Conditional work on RestController?
@Component
@RestController
@Conditional(ExmplCondition.class)
@RequestMapping(value = "/api/users")
public class RestController extends AbstractRestController {
...
}
public class ExmplCondition implements Condition {
@Override
public boolean matches(ConditionContext conditionContext, AnnotatedTypeMetadata annotatedTypeMetadata) {
return false;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question