0
我試過如下;如何在Spring Boot中使用AllNestedConditions
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