Java Spring源代码学习之how does component-scan work

89 阅读1分钟

Created by Wang, Jerry, last modified on Aug 11, 2016

Normally you declare all the beans or components in XML bean configuration file, so that Spring container can detect and register your beans or components. Actually, Spring is able to auto scan, detect and instantiate your beans from pre-defined project package, no more tedious beans declaration in in XML file.
clipboard1
clipboard2
clipboard3
clipboard4
clipboard5
clipboard6
clipboard7
clipboard8
clipboard9
clipboard10