Java Encryption Technology-Origin of Asymmetric Encryption Algorithms DH
Links to the original text: https://my.oschina.net/mohaiyong/blog/221266
DH
Diffie-Hellman algorithm (D-H algorithm), key agreement protocol. It is an idea put forward by Diffie and H ...
Posted by WarDeities on Sun, 08 Sep 2019 23:06:22 -0700
Starting Spring: Spring AOP usage advancement
In the previous blog, we learned what AOP is and how to use AOP in Spring. This blog goes on to explain the advanced usage of AOP.
1. Declare tangent points with parameters
Suppose we have an interface CompactDisc and its implementation class BlankDisc:
package chapter04.soundsystem;
/**
* Compact disc
*/
public interface CompactDisc {
v ...
Posted by blawson7 on Tue, 27 Aug 2019 20:57:47 -0700
Java Description Design Mode (01): Single Case Mode
1. Single Case Mode
1. Conceptual illustrations
Singleton Design Mode Definition: Ensure that this class has only one instance and that automatic instantiation provides this object to the system.
2. Sample Code
package com.model.test;
public class Singleton {
// Recording unique instances using static variables
private static Singleton ...
Posted by yogibear333 on Fri, 23 Aug 2019 17:38:34 -0700
SpringBoot Annotation Profiles are automatically mapped to properties and entity classes (solving hard-coding problems)
SpringBoot Annotation Profiles are automatically mapped to properties and entity classes (solving hard-coding problems)
Configuration File Automatic Mapping Solves Problems
Configuration files are automatically mapped to attributes
Configuration f ...
Posted by mr_zog on Fri, 23 Aug 2019 00:50:18 -0700
Spring AOP - Create Aspects with Annotations
1 Target object
package com.musi.bean;
import org.springframework.stereotype.Component;
@Component
public class Animal {
public void run(){
System.out.println("animal is running .....");
}
public void run(String name){
...
Posted by rsammy on Wed, 14 Aug 2019 05:59:52 -0700
Use of Zookeeper03's Java API
Articles Catalogue
Use of Zookeeper03's Java API
Java program operation Zookeeper
1. Create java projects and import related jar packages
maven project coordinates
2. Simple use of API
2.1 Configuring Zookeeper objects
Common API operations
Adding Nodes
Judging whether a node exists or not
Getting ...
Posted by Murciano on Thu, 08 Aug 2019 20:24:16 -0700
Spring overview and simple introductory cases
The article is long and comprehensive. Please read it patiently. It will be updated continuously in the future. Please pay attention to it.
I. What is Spring
Spring is an open source, lightweight Java development framework
Spring came into being to simplify enterprise application development. Using S ...
Posted by laura_richer on Mon, 05 Aug 2019 02:32:48 -0700
13 - Junit Unit Testing + Reflection + Annotation + Dynamic Agent
1. Junit Unit Testing
1. Background:
The problem with writing code test in main method is that all code is written in main method and will run. If we want to test, we will execute all code and the test efficiency will be lower.
2. Concept:
Unit testing is testing part of the content.
Junit is a th ...
Posted by Javizy on Fri, 02 Aug 2019 02:41:36 -0700
Spring boot Gradle project construction
Spring boot Gradle project construction
Creating Gradle Project with IDEA
File - > New - > Project - > Gradle (in the left option bar)
The following catalogues are generated after the establishment of the routine project:
build
gradle
wrapper
gradle-wrapper.jar
gradle-wrapper.properties ...
Posted by LDusan on Tue, 30 Jul 2019 23:29:21 -0700
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