Spring cloud: Advanced Application of Spring Cloud Gateway

Fusing Current limiting retry 1. Speed limit router Speed limit is one of the common means in high concurrency scenarios, which can effectively guarantee the overall stability of the service. Spring Cloud Gateway provides a Redis based flow limit scheme. So we need to add the corresponding dependency package spring boot starter data R ...

Posted by llangres on Fri, 12 Jun 2020 08:28:01 +0200

springBoot integrated redisson for distributed locks

scene The company has a piece of business that needs to run the timer business to process data. Background uses springBoot to develop, springBoot integration timer task is very simple, use Scheduled is configured to use cron, and a business is executed 45 minutes per hour, because the background is cluster deployed, and the front end is respon ...

Posted by shya on Fri, 15 May 2020 05:02:36 +0200

Remember the scenario of using delay queue in one work

1 scenario The company is engaged in the traffic management of the Internet of things related businesses recently connected with the mobile remote traffic card. The specific business involves card downtime and card recovery. After the user recharge, the background calls the remote card recovery interface for recovery, but the actual test is don ...

Posted by Hikari on Thu, 07 May 2020 10:23:25 +0200

Java Learning Notes 3-Process Control

Article Directory Input & Output input output if judgment switch multiple selection While & do while loop for loop break and continue summary Input & Output input Getting input from the console requires importing the java.util.Scanner class in Java to get different types of input ...

Posted by spikypunker on Tue, 17 Mar 2020 03:23:02 +0100

The simplest HelloWorld example of aspectJ

The simplest HelloWorld example of aspectJ This is the introduction of aspectJ. What's the difference between aspectJ and aop? aspectJ can also implement aop functions. aop generally refers to spring aop, which is a set of annotations such as @ Aspect/@Pointcut/@Before/@Around. The implementation prin ...

Posted by Benjigga on Wed, 19 Feb 2020 08:27:02 +0100

2020 latest version of idea activation tutorial

windows cracking tutorial First, download the jar package: (the cloud disk link can't be sent, you pay attention to gzh "grey wolf learn java" and reply to idea to get it) put it in the appropriate folder (the same level directory of idea is preferred) for management; Enter Disk C - > User - > user name - > intellijidea2019. ...

Posted by Jude on Thu, 13 Feb 2020 15:08:40 +0100

Spring annotation driven development learning

Learning route 1. container spring believes that all components should be placed in the container and used through the automatic assembly of the containerWhen developing based on annotations, the configuration class is the same as the previous configuration file @Configuration indicates that this is ...

Posted by EOS on Fri, 07 Feb 2020 14:28:21 +0100

Java adds, extracts, replaces, and deletes PDF pictures

(1) Introduction PDF is used in many operating platforms with high quality and is ideal for archiving and sharing useful information.This next article describes adding, extracting, deleting, and replacing pictures in PDF documents using Java.The article is roughly structured as follows: Add Pictures to PDF Extract pictures from PDF Replace ...

Posted by wayang_mbeling on Thu, 07 Nov 2019 15:49:43 +0100

[SpringBoot] cross domain, filter and swaggerUI configuration

1. springboot WebAppConfig configuration /**  * Created with IntelliJ IDEA.  *  * @author: zhangenke @Date: 2018/8/16 on 2:25 p.m.  * @description: Let springBoot know that there is this interceptor  */ @Slf4j @Configuration public class WebAppConfig extends WebMvcConfigurationSupport {   // The fol ...

Posted by mrgrammar on Tue, 15 Oct 2019 21:45:23 +0200

Deep into jvm kernel - principle, diagnose and optimize -10. jvm bytecode execution

1. Bytecode javap Simple bytecode execution process Common bytecodes Generating Java bytecode with ASM JIT and its related parameters javap(class file disassembly tool) public class Calc { public int calc() { int a = 500; int b = 200; int c = 50; return (a + b) / c; } } javap –verbose Calc Simple bytecode executio ...

Posted by phpisawesome on Wed, 02 Oct 2019 16:46:01 +0200