With component scanning, there is no longer a need for those explicit XML bean definitions.
利用组件扫描就不再需要这些显式的XMLbean定义。
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所示。
In the next section on component-scanning, a non-XML alternative will be presented.
在下文的组件扫描部分,我们将呈现一个可供选择的非XML方法。
In the next section on component-scanning, a non-XML alternative will be presented.
在下文的组件扫描部分,我们将呈现一个可供选择的非XML方法。
应用推荐