码迷,mamicode.com
首页 >  
搜索关键字:unit 5练习    ( 4539个结果
从 MappedFile 的单元测试看 mmap
@Test public void testSelectMappedBuffer() throws IOException { // 1. 使用 mmap 映射磁盘上的文件 MappedFile mappedFile = new MappedFile("target/unit_test_store/ ...
分类:移动开发   时间:2020-02-19 17:29:17    阅读次数:105
redis基本操作,基于StringRedisTemplate,存储,取值,设置超时时间,获取超时时间,插入list操作
@Autowired private StringRedisTemplate stringRedisTemplate; @GetMapping("/test") void test() { stringRedisTemplate.opsForValue().set("liuqi", "1322105 ...
分类:其他好文   时间:2020-02-19 12:54:35    阅读次数:1274
MySQL的配置安装
MySQL的安装 1.下载网址 Windows的下载网址 推荐5.6.40稳定 2.配置环境变量 ? 右键我的电脑→选择属性→高级系统设置→环境变量 找到path 然后打开解压过的MySQL,复制bin目录下的路径 然后在path环境变量里新建粘贴就OK 不要直接点叉退出,需要确定保存 3.使用 打 ...
分类:数据库   时间:2020-02-19 00:56:32    阅读次数:79
61. 最长不含重复字符的子字符串
视频:AcWing 61. 最长不含重复字符的子字符串 C++里面的hash表:unordered_map<> class Solution {public: int longestSubstringWithoutDuplication(string s) { unordered_map<char, ...
分类:其他好文   时间:2020-02-19 00:53:54    阅读次数:66
MTU(Maximum Transmission Unit),最大传输单元
最大传输单元,是一个数据链路层的概念,它限制了其上层协议的最大载荷; 以太网是 1500字节 一个标准的以太网帧长度: 14字节(头部信息) + 4字节(CRC检验) + 1500字节(MTU) = 1518字节 以太网帧的长度范围: 64字节 ~ 1518字节 IP数据报的长度范围: 46字节 ~ ...
分类:其他好文   时间:2020-02-18 20:15:19    阅读次数:115
IDEA开发scala版本的spark程序
package com.gong import org.apache.spark.{SparkConf, SparkContext} object MyScalaWorldCount { def main(args: Array[String]): Unit = { //参数检测 if(args.l ...
分类:其他好文   时间:2020-02-18 18:56:10    阅读次数:75
scala编程(四)——类和对象
类,字段和方法 在scala里定义一个典型的类,代码如下: class ChecksumAccumulator { private var sum = 0 def add(b: Byte): Unit = { sum += b } def checksum(): Int = { return ~(s ...
分类:其他好文   时间:2020-02-18 18:48:34    阅读次数:65
VS2017中无法提示Unity代码问题
解决Visual Studio2017编辑Unity3d代码时,没有代码检查和提示的问题
分类:编程语言   时间:2020-02-18 18:40:13    阅读次数:302
maven中导入junit jar包
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> ...
分类:编程语言   时间:2020-02-18 18:16:33    阅读次数:353
ReentrantLock
一、源码 1、Lock接口 void lock(); 锁 void lockInterruptibly() throws InterruptedException; 在等待锁时被中断会抛异常 boolean tryLock(); 判断锁是否可用,可用就获取 boolean tryLock(long ...
分类:其他好文   时间:2020-02-18 10:09:04    阅读次数:56
4539条   上一页 1 ... 50 51 52 53 54 ... 454 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!