1 <?xml version="1.0" encoding="UTF-8"?>
 2 <beans xmlns="http://www.springframework.org/schema/beans"
 3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 4     xmlns:p="http://www.springframework.org/schema/p"
 5     xmlns:context="http://www.springframework.org/schema/context"
 6     xmlns:aop="http://www.springframework.org/schema/aop"
 7     xmlns:tx="http://www.springframework.org/schema/tx"
 8     xmlns:mvc="http://www.springframework.org/schema/mvc"
 9     xsi:schemaLocation="http://www.springframework.org/schema/beans
10 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
11 http://www.springframework.org/schema/context
12 http://www.springframework.org/schema/context/spring-context-3.0.xsd
13 http://www.springframework.org/schema/aop
14 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
15  http://www.springframework.org/schema/tx
16       http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
17     http://www.springframework.org/schema/mvc
18     http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd ">
19     <context:component-scan
20         base-package="cn.yzq.service,cn.yzq.dao,cn.yzq.utils"></context:component-scan>
21 <context:property-placeholder location="classpath:db.properties"/>
22     <!-- 配置数据库连接池阿里巴巴的德鲁伊 -->
23     <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource">
24         <property name="username" value="${db.name}"></property>
25         <property name="password" value="${db.password}"></property>
26         <property name="url" value="${db.url}"></property>
27         <property name="driverClassName" value="${db.driverClassName}"></property>
28     </bean>
29 </beans>

转载于:https://www.cnblogs.com/Fisherman13/p/10708779.html

STS中applicationContext.xml配置文件相关推荐

  1. Spring中,applicationContext.xml 配置文件在web.xml中的配置详解

    Spring中,applicationContext.xml 配置文件在web.xml中的配置详解 2016年10月04日 15:22:26 阅读数:7936 转自http://www.cnblogs ...

  2. Winform中自定义xml配置文件后对节点进行读取与写入

    场景 Winform中自定义xml配置文件,并配置获取文件路径: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100522648 ...

  3. Android中Manifest.xml配置文件

    Android中Manifest.xml配置文件里面有很多的属性,下面对部分进行了整理,还没有整理完全. A.基本框架: <?xml version="1.0" encodi ...

  4. IDEA中pom.xml配置文件依赖文件版本号报红的最有效解决办法

    关于IDEA中pom.xml配置文件依赖文件版本号报红的最有效解决办法,简单粗暴直接! 问题产生及解决过程 产生的报错 解决过程 问题产生及解决过程 产生的报错 最近在研究IDEA的使用以及boots ...

  5. applicationContext.xml 配置文件的存放位置

    web.xml中classpath:和classpath*:  有什么区别? classpath:只会到你的class路径中查找找文件; classpath*:不仅包含class路径,还包括jar文件 ...

  6. Spring框架——applicationContext.xml配置文件头部xmlns

    这是一个正常spring框架的applicationContext.xml所包含的头部: <beans xmlns="http://www.springframework.org/sc ...

  7. 读取WEB-INF 下applicationContext.xml配置文件

    Spring中加载配置文件的方式 Spring 中加载XML配置文件的方式,好像有3种, XML是最常见的Spring 应用系统配置源.Spring中的几种容器都支持使用XML装配bean,包括: X ...

  8. Winform中自定义xml配置文件,并配置获取文件路径

    场景 在Winform程序中,需要将一些配置项存到配置文件中,这时就需要自定义xml的配置文件格式.并在一些工具类中去获取配置文件的路径并加载其内容. 关注公众号 霸道的程序猿 获取编程相关电子书.教 ...

  9. Mybatis中SqlMapConfig.xml配置文件的使用

    文章目录 SqlMapConfig.xml中配置的内容和顺序如下 properties(属性) SqlMapConfig.xml引用如下 typeAliases(类型别名) mybatis支持别名: ...

最新文章

  1. 含有PCA动画演示的帖子,需要多读几遍的经典
  2. 二分算法,选择,冒泡排序算法
  3. WIN7安装及配置JDK
  4. 分享.NET开发中经常用到的十大软件(转)
  5. 最喜欢的博客书签和站内短信系统
  6. python 排列组合_python 编写排列组合
  7. 两大硬件设计被OCP官方接受,腾讯成国内互联网公司第一家
  8. Python入门--字符串的连接和替换,replace,join
  9. endnote x7不在word中显示
  10. ansible的安装部署与模块使用
  11. 如何优化一个网站的完整方案-SEO
  12. push_back、emplace_back、std::move
  13. python武器代码_武器代码总结大全 BO开启秘籍的方法
  14. vs code修改代码后再次运行,报错:file“<stdin>“,line 1
  15. x86服务器与arm服务器
  16. Linux中修改httpd默认端口
  17. 刀剑乱舞极化图片_【刀剑乱舞】极化刀速查攻略
  18. iOS15 切换上架App图标的最新方案
  19. [eval函数利用]
  20. 16. 设计模式之契约原则:如何做好 API 接口设计?

热门文章

  1. 2020春招即将来袭,送你110道Python面试真题
  2. python退出帮助系统help应该使用exit_简明Python3教程 5.第一步
  3. 关于机器翻译的三个话题的讨论
  4. AI 医学影像辅助诊断的商业模式分析
  5. SAP SD基础知识之免费订单
  6. 如何用Map、Filter和Reduce替换Python For循环?
  7. 【迈克尔・乔丹:人工智能,革命远未发生】
  8. 人工智能会被赋予人性么?
  9. 【美国斯坦福大学人工智能研究院:人工智能当以人为本】
  10. 吴恩达机器学习笔记 —— 5 多变量线性回归