Spring笔记③--spring的命名空间
2015-08-27 13:53
471 查看
p:命名空间:
xmlns:p="http://www.springframework.org/schema/p"
作用:简化在xml配置bean的属性 在<bean>中使用p:属性名来配置
AOP:命名空间:
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation:
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
作用:简化AspectJ的AOP在xml中配置
util:命名空间:
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation:
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
context:命名空间:
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation:
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
作用:1.配置自动扫描bean注解类
context:命名空间:
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation:
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
xmlns:p="http://www.springframework.org/schema/p"
作用:简化在xml配置bean的属性 在<bean>中使用p:属性名来配置
AOP:命名空间:
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation:
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
作用:简化AspectJ的AOP在xml中配置
util:命名空间:
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation:
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
context:命名空间:
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation:
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
作用:1.配置自动扫描bean注解类
context:命名空间:
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation:
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
相关文章推荐
- Spring任务调度实战之Quartz Simple Trigger
- Spring任务调度实战之Quartz Cron Trigger
- java中判断字符串是否为数字的三种方法
- 工程师薪酬分析:Java 不是过去式
- Spring定时任务的几种实现
- RESTful Java client with RESTEasy client framework
- java-页面数据生成图片
- 快速排序算法Java
- spring学习笔记(26)——spring整合ehcache
- java常见错误以及可能原因
- spring包的作用解析
- java jdbc数据库操作
- 自动生成的R.java有时不可靠
- RESTful Java client with java.net.URL
- Struts2笔记——自定义拦截器
- Struts2笔记——自定义拦截器
- 查找算法Java
- java中的抽象类和接口
- java 通过LDAP 验证、添加、修改、删除
- java 通过LDAP 验证、添加、修改、删除