admin管理员组文章数量:1025514
问题描述
Description:
Parameter 0 of method getGridFSBucket in com.sctech.util.MongoConfig required a bean of type ‘com.mongodb.client.MongoClient’ that could not be found.
Action:
Consider defining a bean of type ‘com.mongodb.client.MongoClient’ in your configuration.
MongoConfig配置类中mongoClient一直报红
解决方法:
删除导入的接口
重新导入
选择 com.mongodb.MongoClient
报红解决,项目正常启动
问题描述
Description:
Parameter 0 of method getGridFSBucket in com.sctech.util.MongoConfig required a bean of type ‘com.mongodb.client.MongoClient’ that could not be found.
Action:
Consider defining a bean of type ‘com.mongodb.client.MongoClient’ in your configuration.
MongoConfig配置类中mongoClient一直报红
解决方法:
删除导入的接口
重新导入
选择 com.mongodb.MongoClient
报红解决,项目正常启动
本文标签: TypeBeandefiningmongodbConfiguration
版权声明:本文标题:Consider defining a bean of type ‘com.mongodb.client.MongoClient’ in your configuration.mongodb配置类问题 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1738336205a1562738.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论