使用JDBCTemplate实现与Spring结合,方法公用 ——Spring配置(applicationContext.xml)
来源:互联网 发布:天蝎网络第二季看不到 编辑:程序博客网 时间:2024/06/04 19:05
<?xml version="1.0" encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schema/p"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.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:@127.0.0.1:1521:orcl"></property><property name="password" value="123"></property><property name="username" value="pro"></property></bean><bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate"><property name="dataSource" ref="dataSource"></property></bean><bean id="baseDao" class="org.dao.impl.EmpDaoImpl"><property name="jdbcTemplate" ref="jdbcTemplate"></property></bean></beans>
阅读全文
1 0
- 使用JDBCTemplate实现与Spring结合,方法公用 ——Spring配置(applicationContext.xml)
- 使用JDBCTemplate实现与Spring结合,方法公用 ——共用实现类(BaseImpl)
- 使用JDBCTemplate实现与Spring结合,方法公用 ——Emp实现类(EmpDaoImpl)
- 使用JDBCTemplate实现与Spring结合,方法公用 ——接口(BaseDao)
- 使用JDBCTemplate实现与Spring结合,方法公用 ——测试(EmpDaoImplTest)
- 使用JDBCTemplate实现与Spring结合,方法公用
- spring applicationContext.xml配置
- spring applicationContext.xml配置
- spring使用AOP如何配置ApplicationContext.xml
- Spring beans.xml(applicationContext.xml) 配置
- spring与hibernate的整合问题—Spring的配置文档applicationContext.xml
- spring与hibernate集成--spring配置文件applicationContext.xml的配置:
- Spring配置文件(applicationContext.xml如何配置)
- Spring applicationContext.xml 路径配置(1)
- spring ApplicationContext.xml之多个配置文件结合
- Spring applicationContext.xml配置详解
- spring ApplicationContext.xml配置mybatis
- spring applicationContext.xml 基本配置
- 学生管理操作系统-总览
- Java与算法(1)
- Hive开发经验总结
- MariaDB数据库安装完需要初始化操作
- sizeof与strlen
- 使用JDBCTemplate实现与Spring结合,方法公用 ——Spring配置(applicationContext.xml)
- python 发送http请求填坑
- USB协通讯议(很好的一篇文章)
- Openstack Neutron扩展实现细节(QOS)
- 又遇到vmware不能启动了(vmware12/Deepin15.4(4.9.0kernel))
- 一次一密文件加密程序
- 【12.1】c++ primer plus 课后编程答案
- 找出Vector中所有最小值
- JS创建对象的几种方式