scanning component 扫描组件
With component scanning, there is no longer a need for those explicit XML bean definitions.
利用组件扫描就不再需要这些显式的XML bean定义。
Clearly it is possible to extend the component scanning in a number of ways to register your own custom types.
很明显,有很多方法可以扩展组件扫描来注册自定义的类型。
And you enable annotation configuration and component scanning in the Spring application context XML configuration, as shown in Listing 5.
然后,在Spring应用程序上下文XML配置中启用注释配置和组件扫描,如清单5所示。
应用推荐