Static method, mock or no mock, this is a question

King Mockito I don't know when to start. Mockito It has become the king of Java's unit testing framework. At present (July 2019), the star number on Github is approaching 10K. Look at other unit testing tools: PowerMock 2K (no doubt with Mockito light), easymock 600, JMockit 300. Compared with Mockito, it's pitiful that none of them can fight. ...

Posted by byrt on Mon, 29 Jul 2019 22:09:45 -0700

Apache Spark Progressive Learning Tutorial: Spark Single Node Installation and Quick Start Demo

First, download Spark The first step in using Spark is to download and decompress. Let's start by downloading the precompiled version of Spark. Visits http://spark.apache.org/downloads.html To download the spark installation package. The version used in this article is: spark-2.4.3-bin-hadoop2.7.tgz Second, install Spark cd ~ tar -xf spark ...

Posted by culprit on Mon, 29 Jul 2019 04:21:08 -0700

Spring Boot Shiro Use Tutorial

Apache Shiro is already well-known for Java, similar to authentication form authentication in.Net.The authentication and authorization policies in.net core are basically the same.Of course, it doesn't matter if you don't know, because all permissions are simulated social behavior of people or institutions. Starting with simple permissions, this ...

Posted by ralba1998 on Sun, 28 Jul 2019 16:53:00 -0700

Package Management of CentOS System: yum

Package Management of CentOS System: yum Introduction to yum yum client /etc/yum.conf Warehouse Pointing Definition View the local yum source Usage of the yum command Command command options Display warehouse list Display package Installation package Upgrade package Check available upgrades Unloadi ...

Posted by Walle on Sun, 28 Jul 2019 00:25:14 -0700

Dubbo User Guide Notes 3 Configuration Details

Detailed description of configuration mode At present, dubbo provides four configurations, they are: XML Configuration Properties Configurtion API Configuration Annotation Configuration Now let's introduce them in detail. XML Configuration I wrote an introductory demo about xml configuration before, so let's take a look at it first. provider. ...

Posted by jd6th on Thu, 25 Jul 2019 00:44:00 -0700

javaee encryption deployment, tomcat decryption using its own classloader [positive solution]

Links to the original text: http://www.cnblogs.com/riasky/p/3471293.html [Causes] The company needs to encrypt a web project and sell it. As everyone knows, class is a good decompiler. So we need to encrypt the class file first. Then us ...

Posted by jarriola on Wed, 24 Jul 2019 01:58:35 -0700

How to Enjoy Performance Testing on Linux Command Line Interface

In the process of performance testing, I encountered a problem. The tester chose a Linux server with only command line interface. Execution of test cases is not very flexible. Sometimes I need to change one or two parameters to add some logs and redeploy them. Although automated construction is convenient, it feels like a big circle. After some ...

Posted by s_ainley87 on Wed, 24 Jul 2019 00:52:21 -0700

Deep understanding of data validation: Java Bean Validation 2.0 (JSR380)

We know that programs are usually hierarchical, and different layers are usually developed by different people. If you're an experienced programmer, I'm sure you've seen the same validation code in different layers, which is spam code in a sense. To solve this problem, Bean Validation defines the corresponding metadata model and API for JavaBea ...

Posted by skypilot on Tue, 23 Jul 2019 23:52:49 -0700

Implementation of RSA Encryption Algorithms in java

Reproduced from: https://blog.csdn.net/zyhlwzy/article/details/77948195 RSA encryption algorithm is currently the most influential public key encryption algorithm, and is generally considered as one of the best public key schemes. RSA is the first algorithm that can be used for both encryption and digit ...

Posted by nuttycoder on Tue, 23 Jul 2019 03:38:08 -0700

Common errors in Flink on yarn

1 Retrying connect to server 2 Unable to get ClusterClient status from Application Client 3 Cannot instantiate user function 4 Could not resolve substitution to a value: ${akka.stream.materializer} 5 java.lang.NoClassDefFoundError: org/apache/kafka/common/serialization/ByteArrayDeserializer 1 Retry ...

Posted by pandhandp on Tue, 23 Jul 2019 02:12:34 -0700