Redis does interface current limiting, which is an annotation!

In addition to caching, Redis can also do many things: distributed locking, flow limiting, idempotency of request processing interface... Too much, too much ~Today, I want to talk with my friends about how to use Redis to deal with interface current limitation. This is also the knowledge point involved in the recent TienChin project. I'll bring ...

Posted by harley1387 on Tue, 17 May 2022 16:48:56 +0300

SpringBoot integrated task Scheduler

SpringBoot integrated task Scheduler Basic steps Step 1: introduce pom dependency <!--Support task scheduling--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-quartz</artifactId> </dependency> Step 2: enable Task Scheduling Supp ...

Posted by denzlite on Tue, 17 May 2022 01:24:21 +0300

How to optimize the entanglement between timed tasks and feign timeout?

1 background The service timer application will often trigger the alarm email of fuse abnormality in the middle of the night Find and summarize the following table according to the class prompted by the email number Error reporting method Application to which the interface belongs Scheduled task class A VipTradeReportFeignService#getShopTr ...

Posted by allex01 on Mon, 16 May 2022 01:32:34 +0300

What exactly does Spring integrate with Mybatis? (II. Introduction of Spring integration)

@EnableDubbo @SpringBootApplication @MapperScan(basePackages = "com.xiaoze.consumer.dao") public class DubboConsumerApplication { public static void main(String[] args) { SpringApplication.run(DubboConsumerApplication.class, args); } } This is a very common way to scan the Dao layer path and register the interface class of ...

Posted by doberman on Sun, 15 May 2022 05:48:09 +0300

Spring learning notes: instantiation of Bean

catalog: 🥪 1, Instantiated Bean 🍬 1.1 environmental preparation 🍬 1.2 instantiation of construction method (common) 🍕 Step 1: prepare the class to be created 🍕 Step 2: configure the class to the Spring container 🍕 Step 3: write the running program 🍕 Step 4: provide constructor test in class 🍕 Step 5: change the constructor to pr ...

Posted by timc37 on Sun, 15 May 2022 01:17:37 +0300

Spring learning notes

1,Spring 1.1 INTRODUCTION The spring framework was created due to the complexity of software development. Spring uses basic JavaBean s to accomplish things that could only be done by EJB s before. However, the use of spring is not limited to server-side development. In terms of simplicity, testability and loose coupling, most Java applica ...

Posted by rdimaggio on Sun, 15 May 2022 01:12:28 +0300

spring. Loading principle of factories and custom environment postprocessor

catalogue spring. Loading principle of factories 1. Construction method of springapplication  1.1 SpringApplication#getSpringFactoriesInstances  1.1.1SpringFactoriesLoader#loadFactoryNames-->loadSpringFactories 1.1.2 createSpringFactoriesInstances Customize EnvironmentPostProcessor Question: how to make the customized environment post ...

Posted by jaddy on Sat, 14 May 2022 23:07:49 +0300

Spring annotation driven notes - Lei Fengyang source level explanation

Spring annotation driven development (I) Introduction - annotation driven development Component registration - @ configuration & @ bean registers components in the container Component registration - @ ComponentScan - auto scan components & specify scan rules Component registration - Custom TypeFilter specifies filtering rules Compo ...

Posted by andrin on Sat, 14 May 2022 17:21:14 +0300

Interpretation of the Spring core IOC source code the postProcessBeanFactory method that implements the beanfactory postprocessors interface

   AbstractApplicationContext. In the invokebeanfactorypostprocessors () code block, let the # PostProcessorRegistrationDelegate # class execute the logic that implements the # postProcessBeanFactory() method 👇 protected void invokeBeanFactoryPostProcessors(ConfigurableListableBeanFactory beanFactory) { //The specific execu ...

Posted by gilgimech on Sat, 14 May 2022 15:26:36 +0300

Implement file upload and download function

Let’s first look at the three elements of file upload: Form submission method: post (get method submission has size limit, post does not)Form's enctype attribute: must be set to multipart/form-dataThe form must have a file upload item: file File upload introduction To receive the files uploaded by the client page, the server usually ...

Posted by jdc44 on Sat, 14 May 2022 00:38:50 +0300