📜  如何禁用自动配置? - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:46.957000             🧑  作者: Mango

代码示例1
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class}) if the class is on the classpath

@EnableAutoConfiguration(excludeName={Sample.class}) if the class isn't on the classpath