上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 35 下一页
摘要: <dependency> <groupId>org.powermock</groupId> <artifactId>powermock-api-mockito</artifactId> <version>1.6.5</version> <scope>test</scope> </dependency 阅读全文
posted @ 2018-06-06 11:19 zslm___ 阅读(1583) 评论(0) 推荐(0) 编辑
摘要: 1.新建项目(选择quikstart) 2.增加spring boot 依赖 3.添加 springboot打包jar 插件依赖 参考 Spring Boot的Maven插件Spring Boot Maven plugin详解 4. 设置启动 application.properties 设置 5. 阅读全文
posted @ 2018-05-30 15:45 zslm___ 阅读(5291) 评论(0) 推荐(0) 编辑
摘要: 1.安装VMware 2.在VMware里安装 CentOs 镜像(CentOS-7.2-x86_64-DVD-1511.iso) 3.启动CentOs后如果不能上网,或者 没有 ifconfig命令,那么 需要安装 net-tools工具等 在虚拟机中以最小化方式安装centos7,后无法上网,因 阅读全文
posted @ 2018-05-22 18:43 zslm___ 阅读(391) 评论(0) 推荐(0) 编辑
摘要: /// /// 普通插入 /// [Fact] public void InsertOrder_Tests() { _sqlMapper.Setup(d => d.BeginTransaction()); _sqlMapper.Setup(d => d.Commit... 阅读全文
posted @ 2018-05-22 17:02 zslm___ 阅读(308) 评论(0) 推荐(0) 编辑
摘要: using System.Runtime.Serialization; /// /// 通用分页请求类 /// [DataContract] public class PagedListModelReq : Request { /// /// Initializes a new instance of the... 阅读全文
posted @ 2018-05-22 16:56 zslm___ 阅读(749) 评论(0) 推荐(0) 编辑
摘要: 默认groupingBy代码里会生成一个HashMap(hashMap是无序的,put的顺序与get的顺序不一致) HashMap是无序的,HashMap在put的时候是根据key的hashcode进行hash然后放入对应的地方。所以在按照一定顺序put进HashMap中,然后遍历出HashMap的 阅读全文
posted @ 2018-05-22 09:52 zslm___ 阅读(34845) 评论(2) 推荐(6) 编辑
摘要: 第2种算法 阅读全文
posted @ 2018-05-15 19:32 zslm___ 阅读(1896) 评论(0) 推荐(0) 编辑
摘要: private Set getCodes(String s) { Set resultSet = new HashSet(); Matcher matcher = codePattern.matcher(s); while (matcher.find()) { resultSet.add(matcher.group(... 阅读全文
posted @ 2018-05-11 09:41 zslm___ 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: csredis 博客 csRedisgit地址 csRedis3.2.1 Nuget地址 (在使用csredis3.2.1获取sentinel时产生运行时异常,调查问题最后发现是获取sentinel的s-down-time配置参数存在问题。在sentinel集群中并非每个sentinel都能获取到这 阅读全文
posted @ 2018-05-07 09:29 zslm___ 阅读(2429) 评论(0) 推荐(1) 编辑
摘要: 基类静态字段调用T(1)基类静态代码块调用T(2)子类静态字段调用T(3)子类静态代码块调用T(4)基类类字段调用T(5)基类构造函数调用T(6)基类类字段调用T(7)子类构造函数调用T(8) 假设更改调用(不用new B ,而直接调用静态字段(方法)) 基类静态字段调用T(1)基类静态代码块调用T 阅读全文
posted @ 2018-04-25 09:27 zslm___ 阅读(130) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 35 下一页