一个完整的WebSocket流程(java实现): nginx配置 ~~~nginx upstream paas_gateway { least_conn; server ip:port; keepalive 1000; keepalive_timeout 65; } server{ listen ...
分类:
Web程序 时间:
2019-11-17 16:16:30
阅读次数:
202
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the ...
分类:
系统相关 时间:
2019-11-16 21:35:33
阅读次数:
88
9.6偏序关系(Partial Order) 偏序(Partial Order) 定义: 偏序(Partial order):定义在A上的集合R是偏序关系iff(当且仅当)其具有以下性质: 1. 自反性(reflexive) 2. 反对称性(antisymmetric) 3. 传递性(transti ...
分类:
其他好文 时间:
2019-11-15 18:33:18
阅读次数:
92
参考:https://blog.csdn.net/woshilijiuyi/article/details/81335497 在规定时间内,使用 hashMap 实现一个缓存工具类,需要考虑一下几点 不可变对象 单例 线程安全 回收失效数据 垃圾回收 缓存大小 LRU 注备: LRU: Least ...
分类:
其他好文 时间:
2019-11-15 12:33:07
阅读次数:
121
[TOC] docker 执行 等待很漫长。如果报错:Cannot set property TasksAccounting, or unknown property 安装java cp jdk .tar.gz到容器中,解压 vi /etc/profile source /etc/profile j ...
分类:
数据库 时间:
2019-11-13 16:06:29
阅读次数:
132
链接: https://vjudge.net/problem/LightOJ 1282 题意: You are given two integers: n and k, your task is to find the most significant three digits, and least ...
分类:
其他好文 时间:
2019-11-13 09:19:03
阅读次数:
95
CF2B The least round way 题目链接:https://www.luogu.org/problem/CF2B 题目描述 给定由非负整数组成的n×nn \times nn×n 的正方形矩阵,你需要寻找一条路径: 以左上角为起点 每次只能向右或向下走 以右下角为终点 并且,如果我们把 ...
分类:
其他好文 时间:
2019-11-12 01:16:54
阅读次数:
89
E - Long Jumps CodeForces - 479D Valery is a PE teacher at a school in Berland. Soon the students are going to take a test in long jumps, and Valery h ...
分类:
其他好文 时间:
2019-11-09 23:34:10
阅读次数:
98
elasticsearch用户拥有的内存权限太小,至少需要262144; 切换sudo并且执行命令 查看结果 以上是临时修改,以下是永久修改,建议俩个地方都改一下 打开配置文件 添加配置 ...
分类:
其他好文 时间:
2019-11-08 10:49:35
阅读次数:
119
网关配置好后启动报错如下: 只需要把 spring-boot-starter-web 进行排除就 OK 了: ...
分类:
编程语言 时间:
2019-11-04 13:58:19
阅读次数:
221