Spring基础(五):依赖注入--注解的形式

什么是依赖注入?java            依赖注入让bean与bean之间以配置文件组织在一块儿。this   1.在Spring配置文件中,开启注解解析器code <context:annotation-config></context:annotation-config>  2.在对象上添加注解Resourcexml public class Student{ public vo
相关文章
相关标签/搜索