admin管理员组

文章数量:1530842

问题描述
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