org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name【已解决】

Write a test class to reproduce the problem:

If you see org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name, you drag the slider to the far right

You will find that it is a question of hierarchy again ! The alias in the application.yml file is not consistent with the entity class. This class cannot be found.

 Hope that solves your problem!

Guess you like

Origin blog.csdn.net/tomorrow9813/article/details/131564849
Recommended