JdbcTemplae使用入门&&Spring三种连接池配置&&Spring配置文件引用外部properties文件

时间:2023-01-31 16:27:23

JdbcTemplate的使用

Spring为了各种支持的持久化技术,都提供了简单操作的模版和回调。

JdbcTemplate 简化 JDBC 操作
HibernateTemplate 简化 Hibernate 操作

下面列出几种熟悉的

aaarticlea/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCADTAlUDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwCCiul8F2sE2pXVxPCk32S1eaOJxkMwxjIrU0jWLrxPa6taawY54Y7Zp438tR5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axpj2SNY/arq38NNBtkGYnmDLiIt0PTHXkVPNrf1/J/5L7/vLXX9d0dlba9o97JNHa6tYzvApaZYrhGMYHUsAeAPeq2heKtH8RQzSafeQu0Lurx+ahdQrFdxAJ+U4yD3BFcnpCX9z4p8PXBbWp44beZLhrvTltooC0Y+RQI0OMr3LDgc5oOn39x4I1rRIra7S9jvpZmQwFRNEbgvhHddj7k7ZI5wRzVXt/XmC1+87jT9Y0zVhIdN1G0vBHjebadZNuemdpOKu1yWhWkNzr66p9r165mitWg36hZJbIqswO3HlRsxyMjGQOemRnrafQQUUUUDCiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAJU/495fqv9aiqVP8Aj3l+q/1qKgAqjqekWOrxxJeRMxhfzIpI5GjkjbplXQhl444NXqKAKOnaRZaUJfskTh5mDSyyyvLJIQMDc7kscDgZPHar1FFAivaWNtYmc28ez7RM08vzE7nOMnnp0HSrFFFAwqjqekWOrxxJeRMxhfzIpI5GjkjbplXQhl444NXqKAKOnaRZaUJfskTh5mDSyyyvLJIQMDc7kscDgZPHar1FFAgooooGFFFFABRRRQAUUUUAFUoNKs7fU7jUUjc3c6hHkkld8KOdqhiQozzhcA1dooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigCvDY20F7c3kce2e5CCV9xO7aMLx0GAe1WKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKALH2Kf+6v8A32v+NH2Kf+6v/fa/41eoqOZjsUfsU/8AdX/vtf8AGj7FP/dX/vtf8akh1OwuRAYL62lFwWEJSVW8zb97bg84wc46Vao5mFij9in/ALq/99r/AI0fYp/7q/8Afa/41eoo5mFij9in/ur/AN9r/jR9in/ur/32v+NXqKOZhYo/Yp/7q/8Afa/40fYp/wC6v/fa/wCNXqKOZhYo/Yp/7q/99r/jR9in/ur/AN9r/jV6ijmYWKP2Kf8Aur/32v8AjR9in/ur/wB9r/jV6ijmYWKP2Kf+6v8A32v+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pv2/b/a121z5nk58rOz5cbvm+51yOtS63oTzXd5q0crPINImslt1jyWLHcCDn2xjHeukopSimreVvwt+RSdnf+t7nG6B4Z1B7Xw9Nq2omaDTYFkgtTa+XIspj2/vW3fNtBYABV685IpYPBNzYQaO1jqsS3mmPcFJLi0MkTrMxJygdSGHADBvXjmuxoqpO7uRFWVjkF8ES/wDCPXmnyasZbq41Eait01uAFlDo4BQMMrlOmRwfxq7caDqZ1OHV7PVLWDUzbC2umeyZ4JlBLAiPzAykEnHzngnOeMdFRSt/Xyt+RX9fjf8AMgs4p4LSOO5uTczjl5dgQEk54UdAOgHJwBkk8meiimIKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigBw/1bfhTaKKQBRRRTAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA//9k=" alt="" />

Spring JDBC是Spring提供的持久层技术

简化JDBC API开发 ,使用上和Apache公司的DBUtils框架非常类似

1、使用JdbcTemplate快速入门

导入必要jar包到工程目录
导入Spring核心开发包到创建工程
  spring-beans-3.2.0.RELEASE.jar
  spring-context-3.2.0.RELEASE.jar
  spring-core-3.2.0.RELEASE.jar
  spring-expression-3.2.0.RELEASE.jar
还需要下载commons-logging日志包
  commons-logging-1.1.1.jar
集成log4j 导入log4j jar包
  com.springsource.org.apache.log4j-1.2.15.jar

  src下面:log4j.properties
导入JDBC模板开发包
  spring-jdbc-3.2.0.RELEASE.jar
  spring-tx-3.2.0.RELEASE.jar
数据库驱动

     @Test
// 无配置文件测试
public void demo1() {
// Spring 内置连接池
DriverManagerDataSource dataSource = new DriverManagerDataSource();
// 需要 jdbc 四个参数
dataSource.setDriverClassName("com.mysql.jdbc.Driver");
dataSource.setUrl("jdbc:mysql:///spring3day2");
dataSource.setUsername("root");
dataSource.setPassword("abc"); JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource); // 建个表
jdbcTemplate.execute("create table abcd(id int , name varchar(20))");
}

2、在实际开发中通过Spring 配置文件来配置 JdbcTemplate

配置三种数据库连接池

1)Spring数据源实现类DriverManagerDataSource

 <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> <!-- Spring内置连接池 -->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
<property name="url" value="jdbc:mysql:///spring"></property>
<property name="username" value="root"></property>
<property name="password" value="root"></property>
</bean>
</beans>

2)DBCP 数据源 BasicDataSource
 在原有jar上加入           com.springsource.org.apache.commons.dbcp-1.2.2.osgi.jar
                    com.springsource.org.apache.commons.pool-1.5.3.jar

    配置dbcp 连接池
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
<property name="url" value="jdbc:mysql:///spring3day2"></property>
<property name="username" value="root"></property>
<property name="password" value="abc"></property>
<property name="initialSize" value="1" />
<property name="maxActive" value="30" />
<property name="maxIdle" value="30" />
<property name="minIdle" value="3" />
<property name="removeAbandoned" value="true" />
<property name="removeAbandonedTimeout" value="3600" />
<property name="testWhileIdle" value="true" />
<property name="validationQuery" value="select 1" />
<property name="validationQueryTimeout" value="1" />
<property name="timeBetweenEvictionRunsMillis" value="60000" />
<property name="numTestsPerEvictionRun" value="30" />
</bean>

3)C3P0 数据源  ComboPooledDataSource

在原有jar上加入    com.springsource.com.mchange.v2.c3p0-0.9.1.2.jar

     <!-- 配置c3p0 连接池 -->
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="com.mysql.jdbc.Driver"></property>
<property name="jdbcUrl" value="jdbc:mysql:///spring3"></property>
<property name="user" value="root"></property>
<property name="password" value="root"></property>
</bean>

3、 使Spring 配置文件引用外部 properties 属性文件 (配置jdbc连接参数)

<context:property-placeholder> 引入外部 properties 属性文件

 jdbc.properties
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql:///spring
jdbc.username=root
jdbc.password=root applicationContext.xml
<!-- 引入外部 properties 文件 --> <context:property-placeholder location="classpath:jdbc.properties"/> <!-- 配置c3p0 连接池 -->
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="${jdbc.driver}"></property>
<property name="jdbcUrl" value="${jdbc.url}"></property>
<property name="user" value="${jdbc.username}"></property>
<property name="password" value="${jdbc.password}"></property>
</bean>

4、测试

 在applicationContext.xml中注册连接池
<!-- 将连接池注入 jdbcTemplate -->
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource"></property>
</bean> public class JdbcTemplateTest {
@Test
// 使用配置文件 测试
public void demo2() {
ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
"applicationContext.xml");
JdbcTemplate jdbcTemplate = (JdbcTemplate) applicationContext
.getBean("jdbcTemplate"); jdbcTemplate.execute("create table abcd(id int , name varchar(20))");
}

5、jdbcTemplate API 分析
Spring为了 在DAO 中可以方便注入 Template 模板操作类, 提供了一组 DaoSupport 支持类

JdbcDaoSupport.java

 package org.springframework.jdbc.core.support;

 import java.sql.Connection;
import javax.sql.DataSource;
import org.springframework.dao.support.DaoSupport;
import org.springframework.jdbc.CannotGetJdbcConnectionException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.DataSourceUtils;
import org.springframework.jdbc.support.SQLExceptionTranslator; public abstract class JdbcDaoSupport extends DaoSupport
{ public JdbcDaoSupport()
{
} public final void setDataSource(DataSource dataSource)
{
if(jdbcTemplate == null || dataSource != jdbcTemplate.getDataSource())
{
jdbcTemplate = createJdbcTemplate(dataSource);
initTemplateConfig();
}
} protected JdbcTemplate createJdbcTemplate(DataSource dataSource)
{
return new JdbcTemplate(dataSource);
} public final DataSource getDataSource()
{
return jdbcTemplate == null ? null : jdbcTemplate.getDataSource();
} public final void setJdbcTemplate(JdbcTemplate jdbcTemplate)
{
this.jdbcTemplate = jdbcTemplate;
initTemplateConfig();
} public final JdbcTemplate getJdbcTemplate()
{
return jdbcTemplate;
} protected void initTemplateConfig()
{
} protected void checkDaoConfig()
{
if(jdbcTemplate == null)
throw new IllegalArgumentException("'dataSource' or 'jdbcTemplate' is required");
else
return;
} protected final SQLExceptionTranslator getExceptionTranslator()
{
return getJdbcTemplate().getExceptionTranslator();
} protected final Connection getConnection()
throws CannotGetJdbcConnectionException
{
return DataSourceUtils.getConnection(getDataSource());
} protected final void releaseConnection(Connection con)
{
DataSourceUtils.releaseConnection(con, getDataSource());
} private JdbcTemplate jdbcTemplate;
}

* 比如 DAO extends JdbcDaoSupport 注入 JdbcTemplate
* 比如 DAO extends HibernateDaoSupport 注入 HibernateTemplate

如果要实现DAO 增加、修改 、删除 JdbcTemplate.update(sql,Object... args)

使用DAO 查询
    1) 简单查询
        queryForInt
        queryForObject
    // 根据id 查询 name
    public String findNameById(int id) {
        String sql = "select name from person where id = ?";
        return this.getJdbcTemplate().queryForObject(sql, String.class, id);
    }

// 查询总记录数
    public int findByTotalCount() {
        String sql = "select count(*) from person";
        return this.getJdbcTemplate().queryForInt(sql);
    }
   
    2) 返回对象和对象集合的查询
        关键点,提供每条数据记录 如何 封装为对象 RowMapper的实现
        private class MyPersonRowMapper implements RowMapper<Person> {
            @Override
            // resultset 查询结果集
            // i 行号
            public Person mapRow(ResultSet rs, int i) throws SQLException {
                // 要将 当前结果集 指定行 数据 封装到 Person 对象
                Person person = new Person();
                person.setId(rs.getInt("id"));
                person.setName(rs.getString("name"));
                person.setCity(rs.getString("city"));
                return person;
            }
        }

使用jdbcTemplate 实现DAO ,完成CURD 功能

1、创建数据库表

 create table person(
id int primary key auto_increment,
name varchar(20),
city varchar(40)
);

2、Person.java

 package cn.itcast.domain;

 public class Person {
private int id;
private String name;
private String city; public int getId() {
return id;
} public void setId(int id) {
this.id = id;
} public String getName() {
return name;
} public void setName(String name) {
this.name = name;
} public String getCity() {
return city;
} public void setCity(String city) {
this.city = city;
} @Override
public String toString() {
return "Person [id=" + id + ", name=" + name + ", city=" + city + "]";
} }

3、PersonDAO.java

 package cn.itcast.dao;

 import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List; import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.support.JdbcDaoSupport; import cn.itcast.domain.Person; /**
* 实现 Person表 增删改查 ,使用JdbcTemplate
*
* @author seawind
*
*/
public class PersonDAO extends JdbcDaoSupport {
// 需要向PersonDAO 注入 JdbcTemplate public Person findById(int id) {
String sql = "select * from person where id = ?";
return this.getJdbcTemplate().queryForObject(sql,
new MyPersonRowMapper(), id);
} public List<Person> findAll() {
String sql = "select * from person";
return this.getJdbcTemplate().query(sql, new MyPersonRowMapper());
} // 必须提供手动封装类,完成每条记录 到 Person 对象封装
private class MyPersonRowMapper implements RowMapper<Person> {
@Override
// resultset 查询结果集
// i 行号
public Person mapRow(ResultSet rs, int i) throws SQLException {
// 要将 当前结果集 指定行 数据 封装到 Person 对象
Person person = new Person();
person.setId(rs.getInt("id"));
person.setName(rs.getString("name"));
person.setCity(rs.getString("city"));
return person;
}
} // 根据id 查询 name
public String findNameById(int id) {
String sql = "select name from person where id = ?";
return this.getJdbcTemplate().queryForObject(sql, String.class, id);
} // 查询总记录数
public int findByTotalCount() {
String sql = "select count(*) from person";
return this.getJdbcTemplate().queryForInt(sql);
} public void save(Person person) {
String sql = "insert into person values(null,?,?)";
this.getJdbcTemplate().update(sql, person.getName(), person.getCity());
} public void update(Person person) {
String sql = "update person set name=? , city=? where id = ?";
this.getJdbcTemplate().update(sql, person.getName(), person.getCity(),
person.getId());
} public void delete(Person person) {
String sql = "delete from person where id = ?";
this.getJdbcTemplate().update(sql, person.getId());
}
}

4、PersonDAOTest.java

 package cn.itcast.test;

 import java.util.List;

 import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import cn.itcast.dao.PersonDAO;
import cn.itcast.domain.Person; /**
* 使用Spring 测试
*
* @author seawind
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext.xml")
public class PersonDAOTest {
@Autowired//可以完成自动装配 无需提供setter方法
private PersonDAO personDAO; // 测试添加
@Test
public void testSave() {
Person person = new Person();
person.setName("小明");
person.setCity("北京"); personDAO.save(person);
} @Test
// 测试修改
public void testUpdate() {
Person person = new Person();
person.setId(1);
person.setName("小明");
person.setCity("上海"); personDAO.update(person);
} @Test
// 测试删除
public void testDelete() {
Person person = new Person();
person.setId(1); personDAO.delete(person);
} @Test
// 测试简单查询
public void testSimpleSelect() {
String name = personDAO.findNameById(2);
System.out.println(name);
System.out.println(personDAO.findByTotalCount());
} @Test
// 根据id 查询
public void testFindById() {
Person person = personDAO.findById(2);
System.out.println(person);
} @Test
// 查询所有数据
public void testFindAll() {
List<Person> persons = personDAO.findAll();
System.out.println(persons);
} }

5、applicationContext.xml

 <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<!-- 配置数据库连接池 -->
<!-- 引入外部 properties 文件 --> <context:property-placeholder location="classpath:jdbc.properties"/> <!-- 配置c3p0 连接池 -->
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="${jdbc.driver}"></property>
<property name="jdbcUrl" value="${jdbc.url}"></property>
<property name="user" value="${jdbc.username}"></property>
<property name="password" value="${jdbc.password}"></property>
</bean> <!-- 将连接池注入 jdbcTemplate -->
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource"></property>
</bean> <!-- 配置DAO -->
<bean id="personDAO" class="cn.itcast.dao.PersonDAO">
<property name="jdbcTemplate" ref="jdbcTemplate"></property>
</bean>
</beans>

JdbcTemplae使用入门&&Spring三种连接池配置&&Spring配置文件引用外部properties文件的更多相关文章

  1. SpringBoot2 集成三种连接池 c3p0 hikari druid

    Hikari 1.首先集成 hikari springboot默认集成,只需要简单的配置即可 1.1 首先导入包 <dependency> <groupId>com.zaxxe ...

  2. spring hibernate4 c3p0连接池配置

    c3p0-0.9.1.2.jar,c3p0-oracle-thin-extras-0.9.1.2.jar,点此下载 <bean id="dataSource" class=& ...

  3. Spring之c3p0连接池配置和使用

    1.导入包:c3p0和mchange包 2.代码实现方式: package helloworld.pools; import com.mchange.v2.c3p0.ComboPooledDataSo ...

  4. redis(三)----连接池配置

    1. 目录结构: 2. 测试源码 package com.redis; import redis.clients.jedis.Jedis; import redis.clients.jedis.Jed ...

  5. redis《三》连接池配置参数

    参数 值 setTestWhileIdle() 在空闲时检查有效性 true setMinEvictableIdleTimeMillis() 连接最小空闲时间 1800000L setTimeBetw ...

  6. spring 使用c3po连接池

    1 数据源:能够简单理解为数据的来源. 2 连接池:是缓存一定数量的数据库连接,当程序须要数据库连接的时候,直接在连接池中获取空暇的连接,使用完再放回连接池中,此连接又变成空暇状态,等待下一次连接. ...

  7. 【转】SSH中 整合spring和proxool 连接池

    [摘要:比来做的一个项目中应用到了毗邻池技巧,大概我们人人比拟认识的开源毗邻池有dbcp,c3p0,proxool.对那三种毗邻池来讲,从机能战失足率来讲,proxool轻微比前两种好些.本日我首要简 ...

  8. springboot 多数据源(三种数据库连接池--JDBC,dbcp2,Druid)

    本文使用的是springboot2.0(在配置数据源时和springboot1.X略有区别) 首先:springboot默认支持的连接池有dbcp,dbcp2, tomcat, hikari四种连接池 ...

  9. 【Mysql】SpringBoot阿里Druid数据源连接池配置

    一.pom.xml添加 <!-- 配置数据库连接池 --> <dependency> <groupId>com.alibaba</groupId> &l ...

随机推荐

  1. 查看Linux系统架构类型的5条常用命令

    导读 很多时候我们都需要查看当前 Linux 系统是 32 位还是 64 位系统架构类型,本文中我将向大家推荐 5 条常用命令.无论你使用的是桌面版或是只装了文本界面的 Linux 环境,以下命令几乎 ...

  2. &lbrack;PHP&rsqb; PHP初学者想了解&quot&semi;伪静态&quot&semi;,必须看这个贴 &lbrack;复制链接&rsqb; &lbrack;推荐&rsqb;

    一.何为“伪静态”? 以传智播客bbs论坛为例,这篇帖子的链接地址原本应该是“http://bbs.itcast.cn/forum.php?mod=post&action=newthread& ...

  3. C&plus;&plus;变量&lpar;C&plus;&plus;变量定义、变量赋值、命名规则&rpar;

    其实在前面的例子中已经多次用到了变量.在程序运行期间其值可以改变的量称为变量.一个变量应该有一个名字,并在内存中占据一定的存储单元,在该存储单元中存放变量的值.请注意区分变量名和变量值这两个不同的概念 ...

  4. iOS 打电话、发短信、发邮件功能

    打电话 方法1 最简单最直接的方式:直接跳到拨号界面 NSURL *url = [NSURL URLWithString:@"tel://10010"]; [[UIApplicat ...

  5. Linux下安装3&period;0以上的python

    Linux下自带的python2.7是不建议删除的,很多系统软件依赖python2.7,但是现在我们学习python一般需要python3.0,下面介绍安装python3.0. 1.进入python官 ...

  6. 深入浅出Git教程(转载)

    目录 一.版本控制概要 1.1.什么是版本控制 1.2.常用术语 1.3.常见的版本控制器 1.4.版本控制分类 1.4.1.本地版本控制 1.4.2.集中版本控制 1.4.3.分布式版本控制 1.5 ...

  7. 小trick总结

    一个圆上的整点数量不会很多.(Cf AIM TR 5 F) 二分图完美匹配求字典序最小的方案:先一遍匈牙利求出任意一组完美匹配.再跑一遍逐位确定,要求不能修改编号比它小的匹配.(LG 4100) 如果 ...

  8. 导出oracle序列

    set serveroutput on;spool c:\sequence_code.txt; declare  v_sequence varchar2(4000);  v_nextval numbe ...

  9. 简单神经网络TensorFlow实现

    学习TensorFlow笔记 import tensorflow as tf #定义变量 #Variable 定义张量及shape w1= tf.Variable(tf.random_normal([ ...

  10. appcompat&lowbar;v7怎么不创建

    韩梦飞沙  韩亚飞  313134555@qq.com  yue31313  han_meng_fei_sha 我们建项目时直接把最小SDK选在Android4.0以上不就不需要这个支持库