spring-cloud / spring-cloud-stream-binder-rabbit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Investigate the need for explicit import of boot's RabbitAutoConfiguration in RabbitServiceAutoConfiguration

olegz opened this issue · comments

Basically because we have an explicit import of RabbitAutoConfiguration in RabbitServiceAutoConfiguration

        /**
	 * Configuration to be used when the cloud profile is not set. Defer to Spring Boot
	 * auto-configuration.
	 */
	@Configuration
	@Profile("!cloud")
	@Import(RabbitAutoConfiguration.class)
	protected static class NoCloudProfile {

	}

. . . explicit exclusion such as @SpringBootApplication(exclude = RabbitAutoConfiguration.class) becomes meaningless.

@garyrussell for any relevant input you may have on this would be nice

Interesting; I have no idea why that's there; seems unnecessary to me.

Is this a duplicate of #187?

Duplicates #187