为什么必须在 AbstractMongoClientConfiguration 中指定数据库名称?

awg*_*tek 5 spring-data-mongodb spring-boot

https://github.com/spring-projects/spring-data-mongodb中,它指定AbstractMongoClientConfiguration实现String getDatabaseName(). 此外,该实施是强制性的。当我只想覆盖其他内容(例如configureConverters())时,我发现在实现中管理数据库名称属性很不方便。是否有原因getDatabaseName()无法有一个可以注入并用于派生数据库名称的默认AbstractMongoClientConfiguration实现MongoProperties?我考虑在 github 上提出问题,但注意到没有“问题”选项卡,所以在这里提问。