<?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:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd"> <!-- 自动扫描 -->
<!-- <context:component-scan base-package="com.wei" /> -->
<import resource="spring-dao.xml" />
<import resource="spring-service.xml" />
<import resource="spring-mvc.xml" />
<import resource="spring-cxf.xml" />
<beans profile="dev" >
<context:property-placeholder location="classpath*:jdbc-dev.properties" />
</beans>
<beans profile="sit" >
<context:property-placeholder location="classpath*:jdbc-sit.properties" />
</beans>
</beans>

web.xml配置如下:

            <?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:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd"> <!-- 自动扫描 -->
<!-- <context:component-scan base-package="com.wei" /> -->
<import resource="spring-dao.xml" />
<import resource="spring-service.xml" />
<import resource="spring-mvc.xml" />
<import resource="spring-cxf.xml" />
<beans profile="dev" >
<context:property-placeholder location="classpath*:jdbc-dev.properties" />
</beans>
<beans profile="sit" >
<context:property-placeholder location="classpath*:jdbc-sit.properties" />
</beans>
</beans>

最新文章

  1. git 学习使用总结一(本地操作)
  2. 错误:[将截断字符串或二进制数据。\r\n语句已终止。]
  3. poj 1924 Paths on a Grid(组合数学)
  4. C 函数原型
  5. AOJ 0558 广度优先搜索
  6. 它们的定义android滑动菜单
  7. 基础-Servlet
  8. ms08_067利用过程
  9. iOS 集成Weex入门教程
  10. 一天搞定CSS: 浮动(float)的副作用--12
  11. zoj1494 暴力模拟 简单数学问题
  12. python numpy模块使用笔记(更新)
  13. Resource Agent:LSB和OCF
  14. ssh登陆慢的问题
  15. 小学四则运算APP 第一阶段冲刺
  16. HDU - 4456 cdq
  17. #个人博客作业Week1——浏览教材后提出的5个问题
  18. 微信第三方平台解密报错:Illegal key size
  19. django from表单基础知识点
  20. .Net 两大利器Newtonsoft.NET和Dapper

热门文章

  1. 树莓派高级GPIO库,wiringpi2 for python使用笔记(四)实战DHT11解码
  2. Node爬虫
  3. JAVA并发,同步锁性能测试
  4. JAVA并发,后台线程
  5. QT实现appendSheet(QAxObject的一种Add + Move的方法)
  6. c# winform读取xml创建菜单
  7. Drupal7模块multiselect使用
  8. data pump(数据泵)
  9. 一步一步学android之布局管理器——LinearLayout
  10. 【Android界面实现】信息更新小红点显示——自己定义控件BadgeView的使用介绍