Spring2.5.6中applicationContext.xml配置
2015-12-17 18:37
253 查看
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
注意:如果是高版本,springmvc的注解不是上面的,而是<mvc:annotation-driven />
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<!-- ②:启动Spring MVC的注解功能,完成请求和注解POJO的映射 --> <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
注意:如果是高版本,springmvc的注解不是上面的,而是<mvc:annotation-driven />
</beans>
相关文章推荐
- 小学四则运算APP 第三阶段冲刺
- Android手机加密进度
- 小学四则运算APP 第三阶段冲刺
- IOS9开始如何处理转屏
- Android多屏幕适配资源生成
- iOS 从摄像头获取YUV420SP数据
- android 动画之 属性动画propertyAnimator(一)
- iOS开发 3D Touch的简单使用
- app store 注册账号生成证书上传app完整的教程
- 生产实习(Android)一
- 为swift编码引入map()和flatMap(), map those arrays
- Android仿淘宝购物车
- 【Unity3D自学记录】利用代码改动图片属性(Inspector)
- 小学四则运算APP 第二阶段冲刺
- iOS storyboard 修改frame问题
- iOS中延时执行的几种方式的比较和汇总
- 翻译:采用现代Objective-C
- Android ListView下拉/上拉刷新:设计原理与实现
- 窥探Swift之类的继承与类的访问权限
- 2015.12.17 初识OC&iOS 类和对象