The error description is as follows:
Reason for the error: The bean of type com.reggie.service.EmployeeService
was not automatically assembled.
The reason for my error was that I forgot to add the annotation @Service to the implementation class of EmployeeService, which means that automatic assembly was not implemented. Then I only need to add annotations to solve the problem.