Notes for MappingJackson 2HttpMessageConverter

Handle conversion of Date type fields to timestamps in Databases There are two ways to solve the date conversion Json problem: 1. (Not recommended) Local modification, custom annotation to convert date type to Date type. 2. (strongly recommended) Global modification, configure in XML (Spring MVC) or in Application.Java startup classes (Spring b ...

Posted by bing_crosby on Fri, 21 Feb 2020 08:30:05 -0800

How to call Ali SMS in springcloud project

Catalog premise Build SMS micro service 1. Introduce pom dependency 2. Preparation of yml documents 3. Create a new guide class 4. Create a new read configuration class 5. Create a new tool class (integrated Alibaba cloud code) 6. Create a new message listening class test   premise   ...

Posted by gibs on Fri, 21 Feb 2020 07:31:55 -0800

Key driven based on event driven (support single double click long press)

As the simplest way of human-computer interaction, keys can be driven simply by reading the level of keys in polling or interruption and adding a delay to eliminate chattering. However, if key resources are limited and multiple functions need to be realized at the same time, we need to optimize the key ...

Posted by NICKKKKK on Fri, 21 Feb 2020 06:12:52 -0800

How do I increase the concurrency of spring boot projects by ten times

Yun Qi Hao: https://yqh.aliyun.comThe first-hand cloud information, the selected cloud enterprise case base of different industries, and the best practices extracted from many successful cases help you to make cloud decision! background Occasionally, there are some slow requests in the production environment, resulting in system performance de ...

Posted by tomhoad on Thu, 20 Feb 2020 03:13:33 -0800

Spring boot 2. X Foundation: packaging applications as executable jars

Knowledge changes fate, rolling code makes me happy, and I will continue to swim in the open source industry in 2020 < br / > Take a look at what you like and get into the habit < br / > Give me a Star, Click to learn about the implementation solution of component-based interface service based on spring boot After the application ...

Posted by khanuja.sunpreet on Thu, 20 Feb 2020 00:12:35 -0800

Asynchronous thread pool usage specification

brief introduction spring The interface class of asynchronous thread pool, whose essence is Java.util.concurrent.Executor Spring has implemented exception thread pool: 1. SimpleAsyncTaskExecutor: it is not a real thread pool. This class does not reuse threads. Each call will create a new thread.   2. SyncTaskExecutor: this class does not ...

Posted by angel1987 on Wed, 19 Feb 2020 20:08:32 -0800

Lightweight RPC Design and Implementation 4th Edition

SPI mechanisms have been introduced in this release, as described in previous articles on Java and Dubbo. Port: The Difference and Principle Analysis between SPI Mechanism and JDK Mechanism of Dubbo Because RPC frameworks are designed based on Spring, dependency injection issues are frequently encountered.There is also a SPI mechanism in Spring ...

Posted by Snatch on Wed, 19 Feb 2020 10:50:16 -0800

The Difference and Principle Analysis between SPI Mechanism and JDK Mechanism of Dubbo

Starting today, you will learn more about DUbbo.First, give a brief overview of DUbbo. Summary Dubbo is the core framework for SOA (Service Oriented Architecture) service governance solutions.Used for distributed calls with a focus on distributed governance. Simply put, it can be divided into four roles.Provider s, Consumer s, registration cent ...

Posted by Boom.dk on Wed, 19 Feb 2020 10:42:21 -0800

Spring boot integrates WEB Development -- start task system

Introduction: There are some special tasks that need to be performed when the system starts, such as the loading of configuration files, database initialization and other operations. If spring boot is not used, these problems can be solved in the Listener. Spring boot provides two solutions: CommandLineRunner and ApplicationRunner. The two diff ...

Posted by LucienFB on Wed, 19 Feb 2020 06:36:46 -0800

What's the use of Collection and Iterable interface

From today on, I want to sum up again what java has to do with collections. It's convenient for me to review. Besides, spring moves are also here. It's terrible. I want to learn them seriously. I can't learn from the epidemic. It's beautiful. Well, there's no more nonsense. Let's take a look at a pictur ...

Posted by IronicSoul on Wed, 19 Feb 2020 03:12:52 -0800