jdbcTemplate:

  首先连接数据库

<!-- 导入外部文件 -->
<context:property-placeholder location="classpath:db.properties"/>
<!-- 配置c3p0数据源 -->
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="${driverClass}"></property>
<property name="jdbcUrl" value="${jdbcUrl}"></property>
<property name="user" value="${user}"></property>
<property name="password" value="${password}"></property> </bean>

外部配置

driverClass=oracle.jdbc.OracleDriver
jdbcUrl=jdbc:oracle:thin:@192.168.1.105:1521:orcl
user=ems
password=123456

注意写URL的时候写本机的IP,写localhost的时候在Oracle数据库中服务的配置要写localhost

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAi8AAAB8CAIAAAAuM8djAAAMN0lEQVR4nO2cP3bjNhCHfapESZ0zbKFmy7iyU3mbvJcmcWv3SZ0ivS+yh7APYdFMIa+WJjCDwT8BoL7vqSCHg8FwAOInkbSvZgAAgNZctU4AAAAANQIAgA5AjQAAoD3vanT1DY/HR/RDVz689mUEKaDkL+UDAACD8kEJND/nqKtMS6Oy4dpXghT01xMDAIDhKKxGFn/vDyzFLbYjAAAYjmJqZPcv9aPKksbMzT0AgBFIVyO9iVeNvHqgqJHkj7QAAGyMLDWanftsir/xgVDUAyclYQAAGIhcNZKO9qNG3KkDAOifMmrkOtifMwXVSImDtAAAbIMG79StdlfqEvWTCDUCANgG4sqerC6x/jlq5O0IAACGQ/wfB8vV3/vQRXkYE3R2gy89Y/0RJACA0WEdBwCA9qBGAADQHtQIAADaU0yNeHgDAADJlJEQpAgAAHIooCKWF+2kd+SiWulx9HfwgnbpkDfPlUVxcGslOVj6VeqgdAoA0D+F1Wh2xCnoVsru3ZUc3GhRcXRBmlV0h1L5AwCMRe4SZlw9vRtG/7TmRgdpEbeHbaJG9u4AAIagOzVSjJbmTdTI3VXIVKOooytP7uwBQLecVY2kdTBqCdaX1O2pkd4EUQGAbdD+t9HJaLzfFYzjjWxXL/0slDRWshTMP+qo9GsGNQKAbdCLGpXyKXWnqzc1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qMfjQ51HZ8YMvR/k3dqeaunvWdJ57fFzs7MSnz9c1IOFnNJ/j6VhjeUE9pNiugHggG3fr6mjwQz5doqb7Gzgpwq/n4OrHGAB8gOH/Ms2wyBZENA4Rj7f16MY/KDGWhhZtEjwTcVq3U2D6vzy7bX706mhJVQKULRoXZEAFTF6h++XGn+ppxfcw1mm4DObWId6o/NHN9Q2LwjeNnWpLDrT3pSDIdSQ6/mRx+8+TZLT3pLT3pN0+cXfvZMT0zfqUHgIJwo52+C2WWC2McYfcsP4m/QPVBlVGZPffSI6NXZ2dtXlB9AAoBog8AcEVlVP+TD1pbN/za5oU99wAAAICSUxnVBwAAAID3QPUBAAAAvwDVBwAAAPwCVB8AAADwC1B9AAAAwC9A9QEAAAC/ANUHAAAA/AJUHwAAAPALUH0AAADAL0D1AQAAAL8A1QcAAAD8AlQfAAAA8AtQfQAAAMAvQPUBAAAAvwDVBwAAAPwCVB8AAADwC1B9AAAAwC9A9QEAAAC/ANUHAAAA/AJUHwAAAPALUH0AAADAL0D1AQAAAL8A1QcAAAD8wv8HOQZbA01xdL0AAAAASUVORK5CYII=" alt="" />修改

连接测试的代码

public class JDBCTest {

    private ApplicationContext ctx=null;
private JdbcTemplate jdbcTemplate; {
ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
jdbcTemplate=(JdbcTemplate) ctx.getBean("jdbcTemplate");
}
@Test
//测试连接
public void testDataSource() throws SQLException{
DataSource dataSource=ctx.getBean(DataSource.class);
System.out.println(dataSource.getConnection());
} }

jdbcTemplate支持的五种方法:

  • execute方法:可以用于执行任何SQL语句,一般用于执行DDL语句;

  • update方法及batchUpdate方法:update方法用于执行新增、修改、删除等语句;batchUpdate方法用于执行批处理相关语句;

  • query方法及queryForXXX方法:用于执行查询相关语句;

  • call方法:用于执行存储过程、函数相关语句。

在xml中配置jdbcTemplate

<!-- 配置Spring的 jdbcTemplate -->
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource"></property>
</bean>

使用:

package com.spring.jdbc;
import java.sql.SQLException; import javax.sql.DataSource; import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate; public class JDBCTest { private ApplicationContext ctx=null;
private JdbcTemplate jdbcTemplate; {
ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
jdbcTemplate=(JdbcTemplate) ctx.getBean("jdbcTemplate");
}
@Test
//测试连接
public void testDataSource() throws SQLException{
DataSource dataSource=ctx.getBean(DataSource.class);
System.out.println(dataSource.getConnection());
}
@Test
public void testUpdate(){
String sql="update employees set last_name=? where id=?";
jdbcTemplate.update(sql, "Jack",2);
}
}

批量修改:

//批量修改
@Test
public void testBatchUpdate(){
String sql="insert into employees(last_name,deptid) values(?,?)";
List<Object[]> batchArgs=new ArrayList<Object[]>();
batchArgs.add(new Object[]{"AA",1});
batchArgs.add(new Object[]{"BB",2});
jdbcTemplate.batchUpdate(sql,batchArgs);
}

NamedParameterJdbcTemplate:具名参数,该对象可以使用具名参数

配置bean

<!-- 配置NamedParameterJdbcTemplate 该对象可以使用具名参数,其没有无参数构造器,所以必须为构造器指定参数-->
<bean id="namedParameterJdbcTemplate" class="org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate">
<constructor-arg ref="dataSource"></constructor-arg>
</bean>

Java测试:

package com.spring.jdbc;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map; import javax.sql.DataSource; import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; public class JDBCTest { private ApplicationContext ctx=null; private NamedParameterJdbcTemplate namedParameterJdbcTemplate;
{
ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
namedParameterJdbcTemplate=ctx.getBean(NamedParameterJdbcTemplate.class);
}
@Test
public void testNamedParameterJdbcTemplate(){
String sql="insert into employees(id,last_name,email,deptid) values(:a,:ln,:email,:id)";
Map<String,Object> paramMap=new HashMap<String, Object>();
paramMap.put("a", 3);
paramMap.put("ln", "FF");
paramMap.put("email", "3@qq.com");
paramMap.put("id", 2);
namedParameterJdbcTemplate.update(sql, paramMap);
} }
改进:
public void testNamedParameterJdbcTemplate2(){
        String sql="insert into employees(id,last_name,email,deptid) values(:id,:lastname,:email,:deptid)";
        Employees employee=new Employees();
        employee.setLastName("haha");
        employee.setEmail("4@qq.com");
        employee.setDeptId(5);
        SqlParameterSource parameterSource=new BeanPropertySqlParameterSource(employee);
        namedParameterJdbcTemplate.update(sql, parameterSource);
    }
参数名就是对象的 属性。然后直接传入属性。

spring使用jdbcTemplate和jdbcdaosupport和namedparameter的更多相关文章

  1. spring使用JdbcTemplate和jdbcDaosupport及具名参数使用

    关于jdbctemplate: 个人感觉比Java链接mysql那一套方便好维护多了,只需在配置文件维护即可 需要的包: com.springsource.net.sf.cglib-2.2.0.jar ...

  2. Spring_使用JdbcTemplate和JdbcDaoSupport

    1.JdbcTemplate 简化 JDBC 模板查询 ①每次使用都创建一个 JdbcTemplate 的新实例, 这种做法效率很低下.②JdbcTemplate 类被设计成为线程安全的, 所以可以再 ...

  3. Spring利用JDBCTemplate实现批量插入和返回id

    1.先介绍一下java.sql.Connection接口提供的三个在执行插入语句后可取的自动生成的主键的方法: //第一个是 PreparedStatement prepareStatement(St ...

  4. Spring 中jdbcTemplate 实现执行多条sql语句

    说一下Spring框架中使用jdbcTemplate实现多条sql语句的执行: 很多情况下我们需要处理一件事情的时候需要对多个表执行多个sql语句,比如淘宝下单时,我们确认付款时要对自己银行账户的表里 ...

  5. Spring之JDBCTemplate学习

    一.Spring对不同的持久化支持: Spring为各种支持的持久化技术,都提供了简单操作的模板和回调 ORM持久化技术 模板类 JDBC org.springframework.jdbc.core. ...

  6. spring+spring mvc+JdbcTemplate 入门小例子

    大家使用这个入门时候 最好能够去 搜一下 spring mvc 的 原理,我放一张图到这里,自己琢磨下,后面去学习就容易了 给个链接 (网上一把,千万不能懒)    https://www.cnblo ...

  7. spring 学习(四): spring 的 jdbcTemplate 操作

    spring 学习(四): spring 的 jdbcTemplate 操作 spring 针对 javaee 的每一层,都提供了相应的解决技术,jdbcTemplate 的主要操作在 dao 层. ...

  8. Spring的jdbcTemplate 与原始jdbc 整合c3p0的DBUtils 及Hibernate 对比 Spring配置文件生成约束的菜单方法

    以User为操作对象 package com.swift.jdbc; public class User { private Long user_id; private String user_cod ...

  9. spring学习(四)spring的jdbcTemplate(增删改查封装)

    Spring的jdbcTemplate操作 1.Spring框架一站式框架 (1)针对javaee三层,每一层都有解决技术 (2)到dao 层,使用 jdbcTemplate 2.Spring对不同的 ...

随机推荐

  1. EasyUI实现异步加载tree(整合Struts2)

    首先jsp页面有一ul用于展现Tree <ul id="mytree"></ul> 加载Tree <script type="text/ja ...

  2. jQuery中的事件监听方式及异同点

    jQuery中的事件监听方式及异同点 作为全球最知名的js框架之一,jQuery的火热程度堪称无与伦比,简单易学的API再加丰富的插件,几乎是每个前端程序员的必修课.从读<锋利的jQuery&g ...

  3. jQuery LigerUI V1.2.2

    jQuery LigerUI V1.2.2 (包括API和全部源码) 发布 前言 这次版本主要对树进行了加载性能上面的优化,并解决了部分兼容性的问题,添加了几个功能点. 欢迎使用反馈. 相关链接 AP ...

  4. ASP.NET Web API下的HttpController激活:程序集的解析

    ASP.NET Web API下的HttpController激活:程序集的解析 HttpController的激活是由处于消息处理管道尾端的HttpRoutingDispatcher来完成的,具体来 ...

  5. Lucene.net入门学习系列(2)

    Lucene.net入门学习系列(2) Lucene.net入门学习系列(1)-分词 Lucene.net入门学习系列(2)-创建索引 Lucene.net入门学习系列(3)-全文检索 在使用Luce ...

  6. 一个吊丝android个人开发者的逆袭之路

    转眼间,一年多过去了,记得我开发第一款android应用的时候,那是在前年的冬天,我本人是做java的,android的学习和开发完全是业余爱好,从前年上半年到前年下半年大约花了半年的业余时间把and ...

  7. django User model

    django User model operation this tutorial will guide us to know how to manipulate django User model. ...

  8. dede搜索引擎

    1.dede模板中的html: <form action="{dede:fieldname='phpurl'/}/search.php" name="formsea ...

  9. android开发之res下的menu (xml+代码的形式)

    转载请注明出处:http://blog.csdn.net/fth826595345/article/details/9199393 先来看Menu  XML文件如何编写: <?xml versi ...

  10. Embedded Linux Primer----嵌入式Linux基础教程--导论

    第一章 导论 在这一章里(将要学习到) 为什么是Linux 嵌入式Linux现状 开源和GPL(译者:通用公共许可证) 标准和有关团体 本章总结 放弃专有操作系统正在许多传统嵌入式操作系统公司引起一阵 ...