java accepts serial data and makes oscillogram

background 1. Receive serial port information 2. Make data into oscillogram difficulty 1. The retain () method must be added to the Jrame to call the paintComponent(Graphics g) method. 2. Note the value type. If the y value is too small, it needs to be set to double. If it is of int type, ...

Posted by Gregg on Sun, 20 Oct 2019 21:02:53 +0200

go regular expression

In the first two lessons, we used a lot of regular expressions to match the city list, city and user information. In fact, in addition to regular expressions to match, we can also use goquery and xpath third-party library to match useful information. And I used more elegant regular expression matching. Let's talk about regular expressions. For ...

Posted by lilsim89 on Thu, 17 Oct 2019 20:48:22 +0200

Springboot2.0.6 (attachment) resolves META-INF/spring.factories to obtain the fully qualified name of the corresponding class through the system loading class

In spring boot, get the META-INF/spring.factories file under all Classpaths through the getspringfactoriesinstances (class < T > type) method, and then find the fully qualified name list of the corresponding class according to the type value. Let me analyze how the getspringfactors instances (class < T > type) method works Source ...

Posted by JeremyMorgan on Thu, 17 Oct 2019 09:00:55 +0200

Spring transaction best practices

Conclusion: 1. Don't use @ Transaction (PS: if you use it, it's better to add it to the method of service layer instead of dao layer and Controller layer) for spring transactions. There will be some situations that cause Transaction rollback failure. 2. It is better to use code to realize transaction management 3. Do not perform RPC, HTTP re ...

Posted by LAX on Wed, 16 Oct 2019 23:38:29 +0200

Understanding of class in ES6

If you have any mistakes in your understanding, please point out: When learning JavaScript, we know that there is no class writing method, so when we need a class, we usually use a constructor to simulate the class writing method. Class writing is provided in ES6, which is not available in ES5. Some ...

Posted by sweetmaster on Wed, 16 Oct 2019 20:12:38 +0200

What is live lock and hunger?

Life lock The task is not blocked. Because some conditions are not met, the process of try fail try fail is repeated all the time. The entity in the live lock is constantly changing, and the live lock may be released by itself. Deadlock is that everyone can't get the resources and occupy each other's resources, while live lock is to get the r ...

Posted by KeitaroHimura on Wed, 16 Oct 2019 14:57:20 +0200

Talk about nacos' local configinfo processor

order This paper focuses on the local configinfo processor of nacos LocalConfigInfoProcessor nacos-1.1.3/client/src/main/java/com/alibaba/nacos/client/config/impl/LocalConfigInfoProcessor.java public class LocalConfigInfoProcessor { private static final Logger LOGGER = LogUtils.logger(LocalConfigInfoProcessor.class); static public Str ...

Posted by szms on Tue, 15 Oct 2019 16:29:05 +0200

Understanding Java Network IO Model by Example

Network IO Model and Classification Internet IO model is a frequently mentioned problem. Different books or blogs may have different opinions, so there is no need to cut corners, the key is to understand. Socket connection Regardless of the model, the socket connections used are the same.The following is a typical connection on an application ...

Posted by cbcampbell on Tue, 15 Oct 2019 11:21:47 +0200

Using alicloud ACM configuration center in Springboot

When our project is just a simple Springboot project, it is inconvenient to use Aliyun ACM configuration center to load and read remote database or redis configuration information when Springboot starts. Official sdk packages either need Spring Cloud or just come out of nocos as registries; so they can only be self-reliant. Realization principl ...

Posted by murdocsvan on Tue, 15 Oct 2019 03:56:58 +0200

Spring Boot WebFlux add, delete, modify and query the complete practical demo

03: WebFlux Web CRUD Practice Preface The last article created a simple service based on functional endpoints and implemented Hello. This article uses Spring Boot WebFlux annotation control layer technology to create a CRUD WebFlux application to make development more convenient. We don't access database storage here, because we'll talk about i ...

Posted by coldfission on Mon, 14 Oct 2019 21:09:35 +0200