Rule persistence-pull mode
After the entinel console configures the flow control and downgrade rules for the interface resources of a micro-service, if the micro-service is restarted, the related rules of the configuration will be lost, because Sentinel stores the rules in memory by default. It is obviously unreasonable to reconfigure rules ev ...
Posted on Sat, 03 Aug 2019 08:22:07 -0700 by Diggler
Docker Packaging Deployment Steps1. mvn clean package2. Transfer the jar package under the pre-alpine folder under target and the Dockerfile to a path on the server3. cd to path4.Build mirror docker build-t pre:1.0.5. Run the command docker run --name pre-P 8081:8081-d pre:1.0
Real product-level dockerfile
#Basic MirrorFROM java:openjdk-8-jre ...
Posted on Thu, 01 Aug 2019 16:41:11 -0700 by apenster
In a project, the project requires a broken line chart to show the number of Statistics online (the number of statistics is stored in the database). No broken line map has been done before, so I found it online.
Baidu's ECharts, after reading several astronomical documents, tested them (because the documents written on the official website are ...
Posted on Wed, 31 Jul 2019 00:39:13 -0700 by viveleroi0
It's been a while since I wrote my blog last time. I think there are many technical points which are scattered and easy to forget. So I decided to write some blogs and write them down.
1. Main classes: There are two main classes, one is AOP class and the other is custom annotation.
AOP classes p ...
Posted on Tue, 30 Jul 2019 17:59:50 -0700 by albynas
Some Terms about Spring AOP
Aspect: In Spring AOP, facets can be implemented using generic classes or in common classes with @AspectJ annotations (@AspectJ style)
Joinpoint: In Spring AOP, a join point represents the execution of a method
Advice: An action performed on a particular Joinpoint of a ...
Posted on Tue, 30 Jul 2019 04:43:22 -0700 by amberb617
Official website: https://projectlombok.org/
What is lombok
Even the official website is too lazy to talk nonsense, just give an advertisement: spice up your java.
Let's sum up for ourselves:
lombok is an ide plug-in that allows us to write less code and compile more bytecodes.
That is to say, we can compile a complex. class file, and our. java ...
Posted on Sat, 29 Jun 2019 12:07:01 -0700 by jmboblee
Bowen's original address: Torture the Builder Model of Java Design Patterns
Separate the construction of a complex object from its representation, allowing the same construction process to create various representations.
Separating the construction of complex objects from their representations allows the same construction proce ...
Posted on Sat, 18 May 2019 10:32:32 -0700 by mobile target
Two major changes to Java 8 are Lambda expressions and the Stam API expressions that we will cover in this section.Stream is a key abstraction concept for handling collections in Java8. It can perform very complex searches, filters, filters and other operations on collections. In the new version of JPA, Stream has also been added.For example:
Posted on Thu, 16 May 2019 21:53:32 -0700 by McManCSU
Overall understanding: Filters and interceptors are two concrete implementations of what we often call AOP ideas. Next, let's look at the differences and specific uses between them.
1. Differences between filters and interceptors
Scope of use: Filters are specified by the Servlet specification and are only used in Web programs ...
Posted on Sun, 28 Apr 2019 14:40:35 -0700 by jeff21
Generally, when building a project, it will choose to define the return value specification entity of the basic interface, and directly specify the return entity. However, the instantiation of the entity on the controller will generate redundant code. In order to reduce the redundant code of this department, some projects will adopt annotation ...
Posted on Sun, 28 Apr 2019 11:30:35 -0700 by sheephat