This question is a sequel of the SpringBoot issue 50649 (since issues are not a good place to have discussions, I send the question here). The springboot documentation states : Auto-configurations must be loaded only by being named in the imports file. Make sure that they are defined in a specific package space and that they are never the target of component scanning.