IDEA出现Could not autowire. No beans of 'xxx' type found.解决


Plan A

File → Project Structure...

IDEA出现Could not autowire. No beans of 'xxx' type found.解决

Facets → Spring → 右键删除即可

IDEA出现Could not autowire. No beans of 'xxx' type found.解决


Plan B

File → Settings → Editor → Inspections → Spring

IDEA出现Could not autowire. No beans of 'xxx' type found.解决

把Mixed换成Warning即可。


Plan C

settings → inspections → spring → spring core → code → autowiring for bean class,右键替换成 warning

IDEA出现Could not autowire. No beans of 'xxx' type found.解决


IDEA出现Could not autowire. No beans of 'xxx' type found.解决

相关文章: