Spring Boot排除某一AutoConfiguration

@EnableFeignClients
@MapperScan(basePackages = {"com.jianke.mall.reconciliation.mapper"})
@ComponentScan(basePackages = "com.jianke")
@SpringBootApplication(exclude = {UserDetailsServiceAutoConfiguration.class})
public class MallOpenReconciliationApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallOpenReconciliationApplication.class, args);
    }

}

你可能感兴趣的:(Spring Boot排除某一AutoConfiguration)