STS中applicationContext.xml配置文件
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配置文件相关推荐
- Spring中,applicationContext.xml 配置文件在web.xml中的配置详解
Spring中,applicationContext.xml 配置文件在web.xml中的配置详解 2016年10月04日 15:22:26 阅读数:7936 转自http://www.cnblogs ...
- Winform中自定义xml配置文件后对节点进行读取与写入
场景 Winform中自定义xml配置文件,并配置获取文件路径: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100522648 ...
- Android中Manifest.xml配置文件
Android中Manifest.xml配置文件里面有很多的属性,下面对部分进行了整理,还没有整理完全. A.基本框架: <?xml version="1.0" encodi ...
- IDEA中pom.xml配置文件依赖文件版本号报红的最有效解决办法
关于IDEA中pom.xml配置文件依赖文件版本号报红的最有效解决办法,简单粗暴直接! 问题产生及解决过程 产生的报错 解决过程 问题产生及解决过程 产生的报错 最近在研究IDEA的使用以及boots ...
- applicationContext.xml 配置文件的存放位置
web.xml中classpath:和classpath*: 有什么区别? classpath:只会到你的class路径中查找找文件; classpath*:不仅包含class路径,还包括jar文件 ...
- Spring框架——applicationContext.xml配置文件头部xmlns
这是一个正常spring框架的applicationContext.xml所包含的头部: <beans xmlns="http://www.springframework.org/sc ...
- 读取WEB-INF 下applicationContext.xml配置文件
Spring中加载配置文件的方式 Spring 中加载XML配置文件的方式,好像有3种, XML是最常见的Spring 应用系统配置源.Spring中的几种容器都支持使用XML装配bean,包括: X ...
- Winform中自定义xml配置文件,并配置获取文件路径
场景 在Winform程序中,需要将一些配置项存到配置文件中,这时就需要自定义xml的配置文件格式.并在一些工具类中去获取配置文件的路径并加载其内容. 关注公众号 霸道的程序猿 获取编程相关电子书.教 ...
- Mybatis中SqlMapConfig.xml配置文件的使用
文章目录 SqlMapConfig.xml中配置的内容和顺序如下 properties(属性) SqlMapConfig.xml引用如下 typeAliases(类型别名) mybatis支持别名: ...
最新文章
- 含有PCA动画演示的帖子,需要多读几遍的经典
- 二分算法,选择,冒泡排序算法
- WIN7安装及配置JDK
- 分享.NET开发中经常用到的十大软件(转)
- 最喜欢的博客书签和站内短信系统
- python 排列组合_python 编写排列组合
- 两大硬件设计被OCP官方接受,腾讯成国内互联网公司第一家
- Python入门--字符串的连接和替换,replace,join
- endnote x7不在word中显示
- ansible的安装部署与模块使用
- 如何优化一个网站的完整方案-SEO
- push_back、emplace_back、std::move
- python武器代码_武器代码总结大全 BO开启秘籍的方法
- vs code修改代码后再次运行,报错:file“<stdin>“,line 1
- x86服务器与arm服务器
- Linux中修改httpd默认端口
- 刀剑乱舞极化图片_【刀剑乱舞】极化刀速查攻略
- iOS15 切换上架App图标的最新方案
- [eval函数利用]
- 16. 设计模式之契约原则:如何做好 API 接口设计?