1 引入 1.1 作用 替我们生成常用的增删改查操作的SQL语句。 1.2 代码官方发布地址 通用mapper 2 快速入门 2.1 创建测试数据 sql脚本 SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- -- Table structure f ...
分类:
移动开发 时间:
2019-02-12 20:07:59
阅读次数:
201
1:定义线程池 @EnableAsync @Configuration class TaskPoolConfig { @Bean("taskExecutor") public Executor taskExecutor() { ThreadPoolTaskExecutor executor = ne ...
分类:
编程语言 时间:
2019-02-11 12:18:58
阅读次数:
214
Java与redis交互比较常用的是Jedis。 先导入jar包: commons-pool2-2.3.jar jedis-2.7.0.jar 基本使用: Jedis对象基本和redis的命令一模一样,这里不啰嗦了。 JedisPool连接池 JedisPool连接池 类似于mysql连接池,jed ...
分类:
编程语言 时间:
2019-02-11 10:47:52
阅读次数:
202
当类实现接口时,接口就充可以引用这个类的实例的类型。因此,类实现了接口,就表明客户端可以对这个类的实例实施某些动作。为了任何其他目的而定义接口是不恰当的。 有一种接口被称为常量接口(constant interface),它不满足上面的条件。这种接口没有包含任何方法,它只包含静态的final域,每个 ...
分类:
其他好文 时间:
2019-02-10 14:59:54
阅读次数:
178
import tensorflow as tf q = tf.FIFOQueue(1000,"float32") counter = tf.Variable(0.0) add_op = tf.assign_add(counter, tf.constant(1.0)) enqueueData_op =... ...
分类:
编程语言 时间:
2019-02-10 09:25:39
阅读次数:
160
《深入理解mybatis原理》 MyBatis的架构设计以及实例分析 MyBatis是目前非常流行的ORM框架,它的功能很强大,然而其实现却比较简单、优雅。本文主要讲述MyBatis的架构设计思路,并且讨论MyBatis的几个核心部件,然后结合一个select查询实例,深入代码,来探究MyBatis ...
分类:
其他好文 时间:
2019-02-09 19:31:16
阅读次数:
177
1)、引入外部的数据源(Druid) 2)、配置文件中切换默认的数据源 3)、配置其他属性 4)、此时的配置并不能使用,需要将其加入容器 Debug查看: 5)、配置监听 上面作为参考!!!! 使用上述设置的账号密码进行登录: 登录成功之后: 执行一个查询: 查看监控: ...
分类:
其他好文 时间:
2019-02-09 19:23:39
阅读次数:
210
[toc] 1. 基本用法 1. 获取连接 2. 操作redis 2. Redis连接池 获取连接:`conn := pool.Get()` ...
分类:
其他好文 时间:
2019-02-08 23:27:41
阅读次数:
233
import tensorflow as tf input1 = tf.constant(1) print(input1) input2 = tf.Variable(2,tf.int32) print(input2) input2 = input1 sess = tf.Session() print... ...
分类:
编程语言 时间:
2019-02-08 18:44:46
阅读次数:
139
mysql以`systemctl start mysqld.service`的方式启动一段时间后发现突然无法启动,尝试重新启动也不能解决问题,排查问题时,先后通过`systemctl status mysqld.service`和`journalctl -xe` 命令查看问题,无所得.然后查看`/v ...
分类:
数据库 时间:
2019-02-07 16:32:22
阅读次数:
316