老师您好。
使用MongoClient时有上图的提示。install可以成功,运行的时候会报如下错误
Description:
Parameter 0 of method gridFSBucket in com.imooc.files.GridFSConfig required a bean of type ‘com.mongodb.MongoClient’ that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type ‘com.mongodb.MongoClient’ in your configuration.
Process finished with exit code 1
一课收获分布式系统开发,微服务核心技术和中间件企业生产落地
了解课程