In depth Java microservice gateway series 3: detailed explanation of spring cloudalibaba gateway (the most complete in History)
9, Service gateway: Gateway9.1 introduction to gatewayAs we all know, in the microservice architecture, a system will be divided into many microservices. So how can a client call so many microservices? If there is no gateway, we can only record the address of each microservice on the client and call it separately.Such an architecture will have ...
Added by deeem on Sat, 05 Mar 2022 04:28:51 +0200
LinkedHashMap for JDK source code analysis
1, Introduction
LinkedHashMap inherits from HashMap. In addition to the features of HashMap, LinkedHashMap also provides the function of keeping the same traversal order and insertion order.
LinkedHashMap maintains a two-way linked list to ensure the consistency of traversal and insertion order.LinkedHashMap can be understood as a combin ...
Added by sports on Sat, 05 Mar 2022 04:27:20 +0200
Spring MVC interceptor and exception handling
Interceptor
Interceptor configuration
Interceptors in spring MVC are used to intercept the execution of controller methods.
Interceptors in spring MVC need to implement HandlerInterceptor.
package com.atguigu.springmvc.interceptor;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAn ...
Added by mancroft on Sat, 05 Mar 2022 04:19:59 +0200
Input and output processing
Java IO
Input (in) / output (out) Persistent storage File, memory, keyboard (data source) - > program - > file, memory, console (destination)
Data source - > program: input (read data) in Program - > console: output (write data) out File: a collection of permanently stored data File storage media: USB flash disk, hard di ...
Added by bigrollerdave on Sat, 05 Mar 2022 04:17:04 +0200
Teach you how to integrate Springboot+Maven+Mybatis with IDEA
IDEA teaches you how to integrate Springboot+mybatis+maven
Recently, I encountered a series of problems when trying to write an introductory springboot project with IDEA. I read a lot of articles on the Internet, but I didn't find a perfect solution, so I plan to write a little white tutorial and take this opportunity to consolidate it.
I Pro ...
Added by genius_supreme on Sat, 05 Mar 2022 03:49:56 +0200
java notes (Part I syntax basis)
1, Computer overview
1.1 computer components
Computers are mainly divided into two categories: hardware and software Hardware: it is composed of many modular components with different functions, and completes the four operation steps of input, processing, storage and output with the cooperation of software, mainly some electronic componen ...
Added by deko on Sat, 05 Mar 2022 03:12:48 +0200
Java generates JWT manually
head
First, we need a Jason
{
"alg":"HS256"
}
Then we need to show it in Java
String header = "{\n" +
"\t\"alg\":\"HS256\"\n" +
"}";
Then remove all spaces
String header = "{"alg":"HS256"}";
If the error is reported, it is obvious that there is a problem, and then use the escape charact ...
Added by stennchau on Sat, 05 Mar 2022 03:01:18 +0200
Deep cultivation of Java multithreading - AtomicInteger thread safety principle
Question 1: AtomicInteger thread safety principles
The basic atomic class (taking AtomicInteger as an example) is mainly implemented through the CAS spin + volatile scheme, which not only ensures the thread safety of variable operation, but also avoids the high overhead of synchronized heavyweight locks, which greatly improves the executio ...
Added by sapna on Sat, 05 Mar 2022 02:55:20 +0200
The basic syntax of JavaSE includes bit operator, operator priority, if statement, switch statement and the use of for loop
8. Bitwise operator
& | ^
Convert the operand to binary, and then operate according to the rules of the operator, and the final result is converted to decimal
&: two numbers in the same bit. If both are 1, it is 1, and if one is 0, it is 0|: two numbers in the same bit, one is 1, and both are 0^: two numbers in the same bit, the same ...
Added by laura_richer on Sat, 05 Mar 2022 02:50:56 +0200
Realize technology integration with SpringBoot and experience the simplified development of SpringBoot
👏 About the author: Hello, I'm cabbage ~ ~, a sophomore in school, and a new star creator in the Java field.📝 Personal homepage: Cabbage CSDN blog📕 Series column: This article is written in the SpringBoot column: Explanation of SpringBoot knowledge points📧 If there are mistakes in the knowledge points of the article, please correct them! Le ...
Added by Chupa85 on Sat, 05 Mar 2022 01:29:21 +0200