SampleMongoApplication uses field injection. It also contains a circular reference as it injects a Mongo-backed CustomerRepository while also defining a MongoClientSettingsBuilderCustomizer which is needed to initialize Mongo during creating of the repository.