Home > Back-end >  Springboot projects use mongo. The find () method is the red line?
Springboot projects use mongo. The find () method is the red line?

Time:04-24

Springboot projects use mongo. Find methods have red line...

Can't access? Nor is it a jar package problem, new modules in this way, other modules are sure

Website have tried, basic approaches can't solve

Big help see

CodePudding user response:

See error thanks, should be import the wrong package, import in your code

CodePudding user response:

No automatic injection? Or injection of objects not springboot container initialization, but their new, or use of this class is not the object itself in injection springboot container so can't use?
  • Related