SpringjdbcTempete的配置文件
来源:互联网 发布:沥青库存数据 编辑:程序博客网 时间:2024/06/06 13:06
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!--数据源的配置 -->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"></property>
<property name="url" value="jdbc:oracle:thin:@localhost:1521:orcl"></property>
<property name="username" value="scott"></property>
<property name="password" value="tiger"></property>
</bean>
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource"><ref bean="dataSource" /></property>
</bean>
<bean id="stuDao" class="com.legend.ZipFileDemo">
<property name="jdbcTemplate" ref="jdbcTemplate" />
</bean>
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!--数据源的配置 -->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"></property>
<property name="url" value="jdbc:oracle:thin:@localhost:1521:orcl"></property>
<property name="username" value="scott"></property>
<property name="password" value="tiger"></property>
</bean>
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource"><ref bean="dataSource" /></property>
</bean>
<bean id="stuDao" class="com.legend.ZipFileDemo">
<property name="jdbcTemplate" ref="jdbcTemplate" />
</bean>
</beans>
0 0
- SpringjdbcTempete的配置文件
- smarty的配置文件以及配置文件的加载
- smarty的配置文件以及配置文件的加载
- 转换autoconf的配置文件为CMake配置文件
- 【配置文件】MySQL的hibernate.cfg.xml配置文件
- 配置文件中如何读取properties的配置文件
- spring的配置文件applicationContext.xml配置文件详解
- Spring的配置文件中加载配置文件
- xml配置文件和properties配置文件的区别
- 我的emacs配置文件
- log4j的配置文件讲解
- 配置文件的异常字符.
- Outlook的配置文件
- 读取配置文件的类
- 翻译的PureFTPd配置文件
- Log4j的配置文件
- emacs的配置文件
- 配置文件的缺点
- cocos2d-x经验分享-spine边界框(碰撞框)
- Visual Studio中监视数组
- 一个lua版的zset数据结构实现
- c/c++内存管理
- 阻塞和非阻塞的区别
- SpringjdbcTempete的配置文件
- python socket基本过程之二(server)
- mybatis字段取别名
- JAVA中集合解析篇二 HashMap解析
- yii2授权之ACF
- cocos2d-x经验分享2-取按键按下
- [leetcode]80. Remove Duplicates from Sorted Array II
- 机器学习-回归模型-欠拟合和过拟合
- cocos2d-x经验分享3-使用HTTP协议 客户端与服务端