Wesley13 Wesley13
3年前
java集合(四)Map集合之TreeMap 详解
一、继承与实现publicclassTreeMap<K,VextendsAbstractMap<K,VimplementsNavigableMap<K,V,Cloneable,java.io.Serializable1.TreeMap<K,V:TreeMap是以keyvalue形式存储数据的。2.exte
Stella981 Stella981
3年前
Redis 单线程如何处理那么多的并发客户端连接?
为什么Redis是单线程的1.官方答案因为Redis是基于内存的操作,CPU不是Redis的瓶颈,Redis的瓶颈最有可能是机器内存的大小或者网络带宽。既然单线程容易实现,而且CPU不会成为瓶颈,那就顺理成章地采用单线程的方案了。IO多路复用技术redis采用网络IO多路复用技术来保证在多连接的
Wesley13 Wesley13
3年前
Ubuntu下通过docker部署springboot项目
Ubuntu下安装docker安装安装命令:sudoaptgetupdatesudoaptgetinstalldocker.io(如果安装失败,也可参考如下网站进行安装:链接(https://www.oschina.net/action/GoToLink?ur
Stella981 Stella981
3年前
Android 流式布局
FlowLayoutManager!Travisbranch(https://img.shields.io/travis/rustlang/rust/master.svg)(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.co
Stella981 Stella981
3年前
Spring Cloud Gateway跨域配置
版本:Greenwich.SR2 1.官网配置https://cloud.spring.io/springcloudstatic/springcloudgateway/2.2.1.RELEASE/reference/html/corsconfiguration(https://www.oschina.net/action/GoTo
Stella981 Stella981
3年前
Spring Security OAuth 2 开发指南
SpringSecurityOAuth2开发指南本文档翻译自http://projects.spring.io/springsecurityoauth/docs/oauth2.html(https://www.oschina.net/action/GoToLink?urlht
Wesley13 Wesley13
3年前
JAVA NIO(一)
1NIO概述1.1NIO(newIO)是一个可以替代javaIOAPI的API,NIO提供了与标准IO不同的工作方式,标准IO是基于字节流和字符流进行操作的,而NIO是基于channel和Buffer进行操作,数据总是从通道读取到缓冲区中,或者从缓冲区写到通道中,方式如例图示,JAVANIO的几个核心组成部分是channels,Buf
Wesley13 Wesley13
3年前
Ubuntu 18.04 下 emscripten SDK 的安装
Ubuntu18.04下emscriptenSDK的安装http://kripken.github.io/emscriptensite/docs/getting\_started/downloads.htmlinstallationinstructions需要环境清华安装源https://mirrors.tuna.tsing
Wesley13 Wesley13
3年前
JAVA操作IBM MQ
java往MQ里面发消息和取消息packagetest;importjava.io.IOException;importcom.ibm.mq.MQC;importcom.ibm.mq.MQEnvironment;importcom.ibm.mq.MQException
Stella981 Stella981
3年前
MapReduce例程
TemperatureMR.javapackage cn.kissoft.hadoop.week05;import org.apache.hadoop.fs.Path;import org.apache.hadoop.io.IntWritable;import org.apache.hadoop.i