Golang-interface(四 反射) go语言学习-reflect反射理解和简单使用 为什么在Go语言中要慎用interface{} golang将interface{}转换为struct go reflect struct 遍历,反射 Golang Reflect反射的使用详解1 Go 语 ...
分类:
其他好文 时间:
2019-04-09 00:38:59
阅读次数:
111
线程(包括安全性和多线程等方面) 线程安全 1从原理来看(JMM(java内存模型)的设计) https://my.oschina.net/u/1778239/blog/1610185 https://my.oschina.net/u/1778239/blog/1613240 2具体的例子&线程安全 ...
分类:
其他好文 时间:
2019-03-30 01:16:04
阅读次数:
172
1、在root目录下新建backup_date文件,写入echo _back_`date '+%Y%m%d%H%M%S'` 2、编辑 .bashrc文件,添加一行 3、执行source .bashrc 使配置生效 4、测试一下 ...
分类:
系统相关 时间:
2019-03-29 19:18:04
阅读次数:
686
搜索业务是马蜂窝流量分发的重要入口,面对越来越高的流量,马蜂窝技术团队积极尝试对搜索架构进行优化和升级,来保证搜索业务的稳定和性能。 ...
分类:
其他好文 时间:
2019-03-29 14:47:52
阅读次数:
173
/**前台传过来一个文件名*/ @RequestMapping("/download") public ResponseEntity export(@RequestParam("strZipPath") String strZipPath) throws IOException { //filepa... ...
分类:
编程语言 时间:
2019-03-27 11:11:45
阅读次数:
151
ThreadPoolExecutor线程池参数设置技巧 一、ThreadPoolExecutor的重要参数 corePoolSize:核心线程数 核心线程会一直存活,及时没有任务需要执行 当线程数小于核心线程数时,即使有线程空闲,线程池也会优先创建新线程处理 设置allowCoreTh ...
分类:
编程语言 时间:
2019-03-27 10:45:21
阅读次数:
133
操作系统:CentOS release 6.7 download yum repo file:rsyslogall.repo 安装: 检查: 配置文件解析: Rsyslogd的配置文件是/etc/rsyslog.conf,一般在/etc目录下,先看看rsyslog client的配置: 大部分的参数 ...
分类:
其他好文 时间:
2019-03-20 14:31:38
阅读次数:
213
,使用JFinal+JSoup组合,抓取数据,数据清洗筛选,最终保存到数据库里,结构化 ...
分类:
其他好文 时间:
2019-03-17 01:15:17
阅读次数:
221
Linux command automake 【Purpose】 Learning linux command automake for generate Makefile.in for configure from Makefile.am 【Eevironment】 Ubuntu 16.04 te ...
分类:
系统相关 时间:
2019-03-12 18:27:20
阅读次数:
195
pt-online-schema-change安装见pt-toolkit,这里不作介绍: ddl语名: alter table TXP.T_TXP_ORDER modify column merchant_orderno VARCHAR(50) COMMENT '商户订单号'; [root@sjno ...
分类:
其他好文 时间:
2019-03-07 20:49:31
阅读次数:
189