Field XXX in XXXX required a bean of type XXXX that could not be found

Record the problems encountered in the project. Because it is the first time to use Springboot, it may be a little unaccustomed to 

The project started and reported this error. Most of the online searches said it was a directory structure problem. Of course, if your class is not under the application class or is on the same level as him, it must not be scanned. If it meets one of the requirements, then It is necessary to see if the implementation class of your Service is annotated with @Service 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325153762&siteId=291194637