Snippets tagged “component-scanning”
2 snippets use this tag.
- UnsatisfiedDependencyException: Error creating bean with nameJava
UnsatisfiedDependencyException is a runtime exception that is thrown when the Spring framework is unable to resolve a dependency for a bean.
- What's the difference between @Component, @Repository & @Service annotations in Spring?Java
In Spring, the @Component annotation is used to mark a Java class as a candidate for component scanning. The @Repository annotation is a specialization of @Component for use in the persistence layer.