BeanCreationException when putting the jar into the classpath (but not adding an annotation) #72
Labels
auto-configuration
everything about the auto-configuration features
bug
spring-boot-1
Issues/PRs which only apply to the Spring-Boot 1 versions (Releases < 20.0)
Wrong behavior
When just putting the jar into the classpath (e.g. by adding a maven dependency), but not adding the
@EnableNakadiProducer
annotation, a spring-boot app will fail during the startup.Error message:
Analysis
The main thing NakadiProducerAutoConfiguration is only activated when the
@EnableNakadiProducer
annotation is used. But it looks like the inner classManagementEndpointConfiguration
(which is annotated with@ManagementContextConfiguration
) is used anyways (maybe just in some circumstances), and this fails because the SnapshotCreationService bean is then missing.This might be related to the spring.factories file which mentions it.
The text was updated successfully, but these errors were encountered: