首页 > 其他分享 >132-报错:Is there an unresolvable circular reference

132-报错:Is there an unresolvable circular reference

时间:2022-11-20 11:00:11浏览次数:45  
标签:java unresolvable reference Aservice there 报错 circular

报错信息:

Requested bean is currently in creation: Is there an unresolvable circular reference?


出现原因:
分别再过滤器和拦截器,同时注入同一个service.

AFilter.java

@Autowired
Aservice aservice;

BFilter.java:

@Autowired
Aservice aservice;

解决: 分别添加 @Lazy

标签:java,unresolvable,reference,Aservice,there,报错,circular
From: https://blog.51cto.com/u_14816966/5871303

相关文章