_Common methods of 124 java thread

/*Common methods of Thread: * 1. start(): start the thread and execute the corresponding run method. * 2. run(): the code to be executed by the child thread is put into the run method. * 3. currentThread(): static, calling the current thread. * 4. getName(): get the name of this thread. * 5. setName(): set the name of this thre ...

Posted by ricerocket on Wed, 25 Dec 2019 21:09:02 +0100

Vue upload files / pictures to qiniu cloud

Purpose: upload files / pictures to qiniu cloud using vue Explain: 1. The foreground uses vue and the background uses java to pass a token. 2. token: This is equivalent to a key. 3. Simply put it. Don't write anything to sign up for an account, find as he ks or anything, and go to this step, needless to say. Step 1: front ...

Posted by cybercog on Fri, 20 Dec 2019 19:55:30 +0100

Spring Cloud:Eureka Service Registry

Preface Service Governance With the development of business, the application of micro-services also increases. The management and governance of these services will become more and more difficult. Cluster size, service location, service naming will change. Manual maintenance is prone to errors or naming conflicts.To solve this problem, service g ...

Posted by danaman on Tue, 10 Dec 2019 13:03:55 +0100

Unit test - Junit4+EasyMock build unit test

Unit test (1): spring boot establishes unit test Unit test (2) - Junit4+EasyMock build unit test Unit test (3) - establish multithreaded unit test Add dependency pom.xml <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> &lt ...

Posted by curby on Mon, 09 Dec 2019 11:27:50 +0100

spring learning summary

This article continues to explain the foundation of IOC in the previous article. This article mainly introduces the implementation of IOC with zero configuration. Now I believe that there is no xml configuration file in all projects. Don't talk much nonsense. Learning together Code example BookDao.java package com.kevin.spring.demo1.dao; /** ...

Posted by future_man on Tue, 03 Dec 2019 02:46:55 +0100

Summary of AOP Learning in Spring Framework

@[toc] stay Spring Framework Learning 1 The main topics are some overviews of Spring, Spring factories, Spring attribute injection, and the introduction to IOC, the most important of which is IOC. Let's briefly summarize the IOC in the last article: Then this article mainly talks about another important core in Spring besides IOC: AOP, IOC or ...

Posted by nonaguy on Wed, 27 Nov 2019 01:49:00 +0100

AOP development of Spring (XML based on AspectJ)

Introduction to Spring's AOP: AOP idea was first proposed by AOP alliance. Spring is the best framework to use this idea Spring's AOP has its own implementation (very cumbersome) Aspect is an AOP framework. Spring introduces aspect as its own AOP development. Two sets of AOP development methods in Spring ◆ traditional way ...

Posted by stry_cat on Tue, 12 Nov 2019 19:08:44 +0100

Jackson's Most Common Configurations and Notes

1. Beans import java.util.Date; import java.util.LinkedList; import java.util.List; public class Result<T> { private Integer code; private String message; private Date time; private T data; public Integer getCode() { return code; } public void setCode(Integer code) { this.code = code; } ...

Posted by fred2k7 on Thu, 07 Nov 2019 16:29:23 +0100

[Junit] Spring project unit test

Background If spring project needs to test small functions, it takes time and effort to start the whole project. You can use spring test package to unit test, accelerate project development and testing. Two, use 1. Add maven dependency <dependency> <groupId>junit</groupId> ...

Posted by Fsoft on Mon, 28 Oct 2019 15:19:06 +0100

1. pytest -- installation and getting started

Article directory 1. installation 2. Create your first test case 3. Execute multiple test cases 4. Trigger an assertion of the specified exception 5. Organize multiple test cases in a class 6. Apply for a unique temporary directory pytest is a framework that can simplify the construction of test sy ...

Posted by Fergusfer on Fri, 25 Oct 2019 03:40:24 +0200