Changgou mall VI: Micro service gateway and jwt token
Microservice gateway
Basic concepts
Each service of microservice generally has different addresses. A service of an external client may call many interfaces, which will bring the following problems
The client will request different micro services many times, and the address is complexThere are cross domain requests and the processing is comp ...
Posted by cahva on Wed, 23 Feb 2022 14:10:09 +0100
effective Java learning notes (Chapter 2)
Compiled from effective Java Chinese version 3
Non instantiation using private constructor
Sometimes I write some tool classes, which are all static methods and static member variables. At this time, I don't need to instantiate this class at all, so I can use this class normally. How to ensure that this class will not be instantiated? When ...
Posted by noeledoran on Wed, 23 Feb 2022 13:43:40 +0100
Prometheus monitoring system + Grafana visualization tool construction
catalogue
1, Introduction to Prometheus monitoring
2, Introduction to Grafana visual monitoring
3, Prometheus monitoring server (default port: 9090)
4, Prometheus monitored node_exporter (default port 9100)
5, Prometheus monitoring Alertmanager (default port 9093)
Vi MySQL monitored by Prometheus (default port 9104)
VII Redis monitored b ...
Posted by Malcina on Wed, 23 Feb 2022 13:16:23 +0100
MyBatis advanced interface proxy mode
Dao interface proxy
1. Introduction to agent development mode
The agent development mode of Mybatis is adopted to realize the development of DAO layer, which is the mainstream of entering the enterprise later.
Mapper interface development method only requires programmers to write mapper interface (equivalent to Dao interface). Mybatis framew ...
Posted by richclever on Wed, 23 Feb 2022 12:16:51 +0100
CAS compareandse source code analysis
What is CAS?
There should be two first reactions: 1. Cas single sign on. Of course, this aspect will not be discussed this time; 2. compareAndSet method is the correct way for us to learn code by learning its API first and then mastering its principles. We should not be affected by the cramming teaching when we were young. It is different from ...
Posted by yepster123 on Wed, 23 Feb 2022 11:51:15 +0100
day12 encapsulation and inheritance
1. Implementation principle of static keyword
Method area: the method area is a specification proposed by SUN company. JDK8 was called permanent generation before, and JDK8 began to call it metadata.
Static area: refers to the area where static related information is stored.
Process of creating objects:
1. When we create a new object, ...
Posted by judgenules on Wed, 23 Feb 2022 11:41:21 +0100
RocketMq master-slave asynchronous cluster
Original link: https://blog.csdn.net/weixin_40533111/article/details/84451219 Author April day may rain ^ ^ ^, Please indicate the source for reprint, thank you
preface
This article is based on the latest edition rocketmq 4.3.2 Construction: 2 nodes. Node a deploys A-m and B-S, and node B deploys A-s and B-m The functional prin ...
Posted by tmbrown on Wed, 23 Feb 2022 11:18:04 +0100
[design mode] detailed single example mode
What is singleton mode
This pattern involves a single class that is responsible for creating its own objects while ensuring that only a single object is created. This class provides a way to access its unique object, which can be accessed directly without instantiating the object of this class.
matters needing attention
Singleton mode can on ...
Posted by dspeer on Wed, 23 Feb 2022 10:37:50 +0100
Implementation principle analysis of [Android] plug-in framework Virtual APK
1 . preface
Virtual APK is an excellent plug-in framework developed by didi travel. Its main developer is teacher Ren Yugang
Speaking of Mr. Ren Yugang, he can be said to be the first teacher of my Android FrameWork layer. When I first came into contact with Android, after dragging the controls for several years and writing some CURD operati ...
Posted by bombas79 on Wed, 23 Feb 2022 07:56:53 +0100
Java foundation - internal classes
You can put the definition of one class inside the definition of another class, which is the inner class.
Benefits of using inner classes:
It allows you to organize some logically related classes together and control the external access rights of internal classesThe inner class is a code hiding mechanism. At the same time, the inner class a ...
Posted by greepit on Wed, 23 Feb 2022 07:18:35 +0100