可以去掉这个提示: settings–> editor–> inspections–>spring–>spring core–>code–> autowiring for bean class–> 去掉勾即可。 相关文章: