0
Я пробовал, как показано ниже;Как использовать AllNestedConditions в Spring Boot
public class MySwitch extends AllNestedConditions {
public MySwitch(ConfigurationPhase configurationPhase) {
super(configurationPhase);
}
@ConditionalOnProperty(name = "EnableSomething")
static class OnProperty {
}
}
, но я получаю сообщение об ошибке, как: Failed to Instantiate as no default Constructor Found
.
Каков правильный способ сделать это?
Работал! Спасибо!! – Raj