Annotation,,是Java语言中的一种特殊的元数据语法,Spring支持使用annotation来进行对象实例化和装配
使用Annotation在Spring的配置xml中添加context命名空间(黄色部分):
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”xmlns:context=”http://www.springframework.org/schema/context”xsi:schemaLocation=”http://www.springframework.org/schema/beans父母养我不容易,我在学校争口气。