Closed xxw1754352621 closed 5 years ago
排除组件自动注入,使用自己实现的注入
https://docs.spring.io/spring-boot/docs/2.1.5.RELEASE/reference/htmlsingle/#using-boot-disabling-specific-auto-configuration 说明:You can define exclusions both at the annotation level and by using the property
方法一: spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
方法二: 使用注解 @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
排除组件自动注入,使用自己实现的注入
https://docs.spring.io/spring-boot/docs/2.1.5.RELEASE/reference/htmlsingle/#using-boot-disabling-specific-auto-configuration 说明:You can define exclusions both at the annotation level and by using the property
方法一: spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
方法二: 使用注解 @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})