解决The injection point has the following annotations:@org.springframework.beans.factory.annotation错误~

简介: 解决The injection point has the following annotations:@org.springframework.beans.factory.annotation错误~

错误描述如下所示:

错误原因:未将com.reggie.service.EmployeeService类型的bean进行自动装配

我的错误原因是忘记给EmployeeService的实现类添加注解@Service,也就是未实现自动装配,那么只需要添加注解即可解决该问题

相关文章
|
Java Maven
程序包org.springframework.transaction.annotation不存在
整合ssm报:程序包org.springframework.transaction.annotation不存在 使用注解: @Transactional 之后,就一直报不存在 最终找到原因是:maven依赖 spring-tx版本问题,换个版本就OK
1364 0
程序包org.springframework.transaction.annotation不存在
|
4月前
|
Java
SpringBoot注入出现@org.springframework.beans.factory.annotation.Autowired(required=true)
SpringBoot注入出现@org.springframework.beans.factory.annotation.Autowired(required=true)
33 0
|
6月前
|
Java 微服务 Spring
【Java异常】Spring boot启动失败@org.springframework.beans.factory.annotation.Autowired(required=true)
【Java异常】Spring boot启动失败@org.springframework.beans.factory.annotation.Autowired(required=true)
52 0
|
3月前
|
容器
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException:
|
5月前
解决:org.springframework.web.method.annotation.MethodArgumentTypeMismatchExceptio
解决:org.springframework.web.method.annotation.MethodArgumentTypeMismatchExceptio
181 0
|
9月前
No qualifying bean of type ‘org.springframework.boot.autoconfigure.http.HttpMessageConverters‘ avail
No qualifying bean of type ‘org.springframework.boot.autoconfigure.http.HttpMessageConverters‘ avail
112 1
|
10月前
|
Java 数据库连接 Spring
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘ XXX‘
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘ XXX‘
130 0
|
JSON Dubbo Java
Failed to meta-introspect annotation interface org.springframework.web.bind.annotation.RequestBody:
Failed to meta-introspect annotation interface org.springframework.web.bind.annotation.RequestBody:
226 0
Failed to meta-introspect annotation interface org.springframework.web.bind.annotation.RequestBody:
|
Java Spring 容器
报错:org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'xxx'is defined
报错:org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'xxx'is defined
406 0
报错:org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'xxx'is defined
|
Java Maven
关于org.springframework.cloud.context.named.NamedContextFactory$Specification 的问题!
关于org.springframework.cloud.context.named.NamedContextFactory$Specification 的问题!
328 0
关于org.springframework.cloud.context.named.NamedContextFactory$Specification 的问题!