The injection point has the following annotations: - @org.springframework.beans.factory.annotation.

The injection point has the following annotations: - @org.springframework.beans.factory.annotation.,第1张

spring boot 启动报错 ;;The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
完整的

Description:

Field userService in com.wodon.tp.user.service.impl.UserWalletServiceImpl required a bean of type 'java.lang.Long' that could not be found.

The injection point has the following annotations:
	- @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'java.lang.Long' in your configuration.

错误原因:  
  

```java
  @Resource 
    //private IHospitalService iHospitalService;

我在service 层注入了一个 其他的service ,后来不想要了 注释掉了,但是 @Resource没注释掉 , 把 @Resource 也注释掉


```java
 // @Resource 
    //private IHospitalService iHospitalService;

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/720515.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-25
下一篇 2022-04-25

发表评论

登录后才能评论

评论列表(0条)

保存