摘要: 1.使用注解配置Spring 1.导包基本包4个+2个Spring+aop 2.导入新的命名空间context 3.开启注解扫描功能 4.在bean类的操作 1 //将对象注册到容器 2 @Component("s1") 3 /* 4 * @Service("s1") 5 * @Controller 阅读全文
posted @ 2018-06-14 23:20 Masukotto&xiaou 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1.Spring框架 Spring框架是一站式框架正是因为Spring框架性质是属于容器性质的 容器中装什么对象就有什么功能,Spring不光不排斥其他框架,还帮助其他框架管理对象 还对AOP支持 2.导包 3.HelloWord applicationContext.xml demo.java 4 阅读全文
posted @ 2018-06-14 22:48 Masukotto&xiaou 阅读(217) 评论(0) 推荐(0) 编辑