公司目前数据源为主从模式:主库可读写,从库只负责读。使用spring-jdbc提供的AbstractRoutingDataSource结合ThreadLocal存储key,实现数据源动态切换。 最近项目加入数据源切换后,偶尔会报出read-only异常,百思不得其解...... RoutingDat ...
分类:
其他好文 时间:
2019-01-06 14:26:13
阅读次数:
707
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;using System.Collection ...
UML (unified modeling language),统一建模语言 uml包含多种图表,本处仅记录常见的两种 类图(class diagram) 从上到下,每一块称为 1. 类名 2. 属性清单 3. 方法清单 4. 性质清单 符号 + public 符号 private 符号 prote ...
分类:
其他好文 时间:
2019-01-02 15:03:31
阅读次数:
125
1 大纲概述 文本分类这个系列将会有十篇左右,包括基于word2vec预训练的文本分类,与及基于最新的预训练模型(ELMo,BERT等)的文本分类。总共有以下系列: word2vec预训练词向量 textCNN 模型 charCNN 模型 Bi-LSTM 模型 Bi-LSTM + Attention ...
分类:
其他好文 时间:
2019-01-02 12:54:39
阅读次数:
406
一、介绍 项目中经常会遇到分页,PageHelper为我们解决了这个问题。本质上实现了Mybatis的拦截器,作了分页处理。 二、配置PageHelper 1、引入依赖 pagehelper-spring-boot-starter对了pagehelper做了封装,减少 了配置文件,只需要在yml添加 ...
分类:
编程语言 时间:
2018-12-31 20:27:58
阅读次数:
201
word record 2 1. scavenger // si ga wen ger a person, animal or insect who takes what others have left or thrown away 清除剂(清道工,选池,基接受体);拾荒者 2. biopedal ...
分类:
其他好文 时间:
2018-12-29 13:41:44
阅读次数:
185
python实现并绘制 sigmoid函数,tanh函数,ReLU函数,PReLU函数 ...
分类:
编程语言 时间:
2018-12-28 13:32:50
阅读次数:
422
整理分析系统性能的命令sar本人主要用这个命令看CPU的负载和使用情况sar-u35系统使用率看cpu的负载情况没三秒统计一次,统计5次sar-p135cpu是从0开始计算的,自定第二个cpu的运行负载%user用户进程消耗的CPU时间百分比%nice运行正常进程消耗的CPu百分比%system系统进程消耗的CPU百分比%iowaitI/O等待所占用的CPU时间百分比%steal内存相对紧张的环境
分类:
系统相关 时间:
2018-12-22 01:17:28
阅读次数:
274
对象的constructor属性引用了该对象的构造函数.对于 Object 对象,该指针指向原始的 Object() 函数.如下: constructor常用于判断未知对象的类型,如下: 参考自https://www.cnblogs.com/xcee/ ...
分类:
其他好文 时间:
2018-12-15 21:41:13
阅读次数:
204
题目描述 A group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather poor drivers, the cows unfortunately managed to ...
分类:
其他好文 时间:
2018-12-08 11:26:16
阅读次数:
163