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;
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)