Org.springframework.beans.factory.BeanCreationException:
The reason is that when Autowire, the corresponding class is not found, the problem is because the XXXXX implementation class does not add the corresponding annotations. such as the DAO layer @Repository such as Service layer @Service
This problem occurs because the corresponding annotation is not appended to the corresponding implementation class.
The problem I found is that there is no append in the service layer's implementation class:
@Service ("XXXXX")
- 2
At the beginning of the Service implementation class Xxxxxserviceimpl.java, append @service ("XXXXX"), as follows:
@Service ("XXXXX")
public class Xxxxxserviceimpl implements xxxxxservice{
......
}
- 3
After appending, the code is refreshed and clean, and restarting Tomcat will generally succeed.
Spring Error: Error creating bean with Name