我看了这篇文章 IntelliJ Idea解决Could not autowire. No beans of 'xxxx' type found的错误提示,
其实里面的做法是不太正确的,尽管也能消除报错。
这是从spring2.0新增的一个注解