- 2
- 0
- 约2.26千字
- 约 12页
- 2017-08-12 发布于安徽
- 举报
注解 (Annotation) --配置的别样风情 applicationContext1.xml applicationContext2.xml applicationContext3.xml 编码 配置 代码 注释 JavaDoc … … 以注解的形式完成配置 增强程序的内聚性 提高编程思路的连贯性 引入Spring注解命名空间 beans xmlns=/schema/beans xmlns:xsi=/2001/XMLSchema-instance xmlns:context=/schema/context xmlns:aop=/schema/aop xmlns:tx=/schema/tx xsi:schemaLocation=/schema/beans /schema/beans/spring-beans-2.5.xsd /schema/context /schema/context/spring-context-2.5.xsd /schema/tx /schema/tx/spring-tx-2.5.xsd /schema/aop /schema/aop/spring-aop-2.5.xsd 使用Spring注解完成Bean的配置 Spring注解 @Component @Repository @Service @Controller 需配置类扫描机制 co
原创力文档

文档评论(0)