context:component-scan

context:component-scan   一个项目写多个的时候,要注意包名不要重叠。否则会导致初始化多个组件实例。

posted on 2017-05-03 11:22  明明很久  阅读(113)  评论(0)    收藏  举报