Spring boot2. X integrates MQTT to realize message subscription (with source code)
MQTT protocol is widely used in the field of industrial Internet of things because of its low latency and high efficiency. The previous article introduced how to send MQTT message by code. Based on the previous article, this paper implements the subscription and reception of MQTT message.Operation steps:
Introduce related dependencies
<de ...
Posted by omarh2005 on Sat, 22 Feb 2020 18:27:15 +0100
zuul routing gateway overview, basic configuration, routing rules
zuul routing gateway
Zuul includes two main functions of request routing and filtering:
The routing function is responsible for forwarding the external request to the specific microservice instance, which is the basis of realizing the unified access to the external access, while the filter function is ...
Posted by Gary King on Sat, 22 Feb 2020 09:42:35 +0100
Explore spring cloud series Chapter 6: creating Zuul intelligent routing Palace
Welcome to spring cloud. In this chapter, we will teach you how to create the parent-child project architecture of spring cloud.
Knowledge is endless, and stories are good or bad. Articles are purely fictions. Make complaints about them.
How can I walk in the Jianghu without any tricks. The technologies ...
Posted by vcarter on Sat, 22 Feb 2020 08:26:41 +0100
Variable passing of Reactor asynchronous thread
order
This paper mainly studies the variable transfer of reactor asynchronous thread
The problem of threadlocal
In the traditional request / response synchronization mode, it is very convenient to use threadlocal to pass context variables. It can save adding common variables to each method parameter, such as the current login user. ...
Posted by gamesmad on Sat, 22 Feb 2020 08:24:42 +0100
Summary of problems encountered in using external tomcat in SpringBoot
Preface
Spring boot uses the embedded Servlet container by default. When we use external Servlet containers, we will encounter various problems.
Environment used: IDEA + apache-tomcat-7.0.91
1.springboot starts tomcat and reports error java.lang.NoClassDefFoundError: javax/el/ELManager
Caused by: or ...
Posted by KC8Alen on Sat, 22 Feb 2020 04:57:43 +0100
Spring AOP 2. X implementation of pre, post, surround and exception notification based on namespace configuration
SpringAop 2.x
Introduction:
The principle of namespace based configuration is to use post processor, which is simpler.
Characteristic:
Simplified configuration,
There is no need to implement any interface when writing non intrusive notifications.
Use the AspectJ expression to define the tangent point.
B ...
Posted by snidog on Fri, 21 Feb 2020 07:17:00 +0100
Spring Cloud Sleuth service link tracking
Zipkin service tracking principle
Create some tracking identifiers (tracking ID, spanId, parentId), and finally build a request process tree. When each business system calls each other, it will pass specific tracking messages to Zipkin. After Zipkin collects tracking information, it will aggregate, process, store, display, etc. users can easily ...
Posted by Rebelrebellious on Thu, 20 Feb 2020 09:49:41 +0100
XML based declarative transaction control configuration steps in Spring
1. Import Maven coordinates
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.0.2.RELEASE</version>
</dependency>
<de ...
Posted by fiorelina21 on Thu, 20 Feb 2020 07:36:28 +0100
Spring MVC type converter
Spring MVC type converter
We know from the previous article that spring MVC framework can automatically encapsulate and bind parameters, but sometimes the data we transmit is not necessarily transformed according to the existing type converter.
As illustrated by the following example, it is necessary ...
Posted by troublemaker on Thu, 20 Feb 2020 06:13:11 +0100
Through Source Code Optimization: How many options do you know for String string performance optimization?
Recommended reading:
Ali Liang Jing on both sides: design mode + cache + Spring + virtual machine + MySQL + middleware + concurrency and other problems, all solved
Alibaba bytes jump those big factories must ask HTTP how to learn?I suggest you read this article!
Ant, byte, PDD social face-to-face via Java post (Distributed + Thread Security + ...
Posted by barrylee on Wed, 19 Feb 2020 19:06:40 +0100