这是之前学习spring3时整理的注解解释,新的注解例如spring4和springBoot中的注解会另找时间整理
================================================================================================
@Component
@Component是所有受Spring 管理组件的通用形式,
@Component注解可以放在类的头上,
@Component不推荐使用。
@Controller
@Controller对应表现层的Bean,也就是Action
@Controller如果不指定其value,则默认的名字为这个类的类名首字母小写
@Controller指定了value,或制定了bean名称,则使用value作为bean的名字
注:实际上,使用@Component,也可以起到@Controller同样的作用