摘要: 一、group by 当我们执行 group by 操作在没有合适的索引可用的时候,通常先扫描整个表提取数据并创建一个临时表,然后按照 group by 指定的列进行排序。在这个临时表里面,对于每一个 group 的数据行来说是连续在一起的。完成排序之后,就可以发现所有的 groups,并可以执行聚 阅读全文
posted @ 2020-01-05 21:17 ppjj 阅读(6788) 评论(0) 推荐(2) 编辑
摘要: 由于springboottest需要初始化上下文,每一次都要好长时间,可以使用其他方法替换它: 测试类如下: WebConfig.java类: 阅读全文
posted @ 2020-01-05 20:54 ppjj 阅读(2249) 评论(0) 推荐(0) 编辑
摘要: I just announced the new Learn Spring course, focused on the fundamentals of Spring 5 and Spring Boot 2: I just announced the new Learn Spring course, 阅读全文
posted @ 2020-01-05 19:09 ppjj 阅读(932) 评论(0) 推荐(0) 编辑
摘要: 在测试用例中,指定初始化方式 @ContextConfiguration(classes = RedisConf.class, initializers = ConfigFileApplicationContextInitializer.class) 对应的配置类 本文转自:https://www. 阅读全文
posted @ 2020-01-05 19:06 ppjj 阅读(1490) 评论(0) 推荐(0) 编辑
摘要: 上一篇文章中,我们其实介绍了 Kubernetes 的对象其实就是系统中持久化的实体,Kubernetes 用这些实体来表示集群中的状态,它们描述了集群中运行的容器化应用以及这些对象占用的资源和行为。 不过当我们想要了解 Kubernetes 的实现原理时,绕不开的其实就是 Kubernetes 中 阅读全文
posted @ 2020-01-05 18:54 ppjj 阅读(364) 评论(0) 推荐(0) 编辑
摘要: This was how I solved mine after 'googling' around... This was how I solved mine after 'googling' around... Navigate to the directory your node was in 阅读全文
posted @ 2020-01-05 18:45 ppjj 阅读(4015) 评论(1) 推荐(0) 编辑
摘要: 前言 何为Retrofit? 借用官网的原话, Type-safe HTTP client for Android and Java by Square, Inc.适用于Android 和 Java 的类型安全的HTTP客户端,由Square提供的。(敲黑板) 由此我们可以得知,Retrofit是一 阅读全文
posted @ 2020-01-05 18:36 ppjj 阅读(6029) 评论(0) 推荐(0) 编辑
摘要: 一、内置Servlet容器 1.1 定制和修改Servlet容器配置 (1)在application.properties/yaml文件中修改。示例: server.port=8081 #项目路径 server.servlet.context-path=/dmf server.tomcat.uri- 阅读全文
posted @ 2020-01-05 18:26 ppjj 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 最近接手公司前端外包出去的的项目,然后在npm run build的时候遇到了两个问题。 第一点是 A complete log of this run can be found in:npm ERR! C:\Users\90422\AppData\Roaming\npm-cache\_logs\2 阅读全文
posted @ 2020-01-05 18:09 ppjj 阅读(3855) 评论(0) 推荐(0) 编辑
摘要: Mock方法内部new出来的对象 测试目标代码: 01 public class ClassUnderTest { 02 03 public boolean callInternalInstance(String path) { 04 05 File file = new File(path); 0 阅读全文
posted @ 2020-01-05 18:08 ppjj 阅读(5768) 评论(0) 推荐(0) 编辑
摘要: 要模拟的类: 使用PowerMock模拟: 阅读全文
posted @ 2020-01-05 18:02 ppjj 阅读(2872) 评论(0) 推荐(0) 编辑