RabbitMQ notes: small test demo about prefetch count

About rabbitmq prefetch count 1-1: cause I've always had a vague impression of prefetch count. I only know that instead of the original broker polling for consumer s, I can pull down n items at a time, but when I send message s one by one through the interface, I still poll, so I have this verification blog. 1-2: experimental code Configura ...

Posted by kornlord283 on Sun, 24 Oct 2021 06:20:25 -0700

Detailed explanation of common use of WebMvcConfigurer interceptor of SpringBoot

1. Introduce pom dependency Because almost all web projects use the interceptor, the interceptor object introduced into the next web package is also in the web packagethymeleaf: view the static interface; <!--introduce springboot Parent project dependency--> <!--Introduce dependency: It can be omitted version Ta ...

Posted by Zemnon on Sat, 23 Oct 2021 01:16:53 -0700

Spring boot 2 custom annotation, taking AOP simple logging as an example

1, Foreword Long time no see. How are you? Recently started learning Ruoyi Framework: a background management system based on SpringBoot. As a rapid development framework, online evaluation is good. Students who have time can look at the code and learn it. At the beginning, I planned to introduce the user-defined annotation with the Log ...

Posted by melefire on Fri, 22 Oct 2021 05:15:30 -0700

[Springboot] integrate Shiro to realize login interception, user authentication and request authorization (thymeleaf, mybatis)

Shiro address: https://shiro.apache.org/ reference resources: Crazy God says Java Springboot 1, Construction project 1.1 configuration dependency Select the Springboot project to build, and select the web and thymeleaf templates. Spring boot starter thymeleaf, spring boot starter web and spring boot starter test will be imported automati ...

Posted by fireMind on Fri, 22 Oct 2021 03:07:25 -0700

Explain @ Resource parsing process in detail

1, Resource annotation parsing process @The logic of Resource and @ Autowired processing is basically the same. They both find the injection point first, and then inject attributes according to the injection point. The difference is that @ Resource parsing is completed by CommonAnnotationBeanPostProcessor, and @ Autowired parsing is completed ...

Posted by fat creative on Wed, 20 Oct 2021 22:36:50 -0700

java multithreading learning notes

1, Introduction to implementation method There are three ways to create threads in java The second interface implementation is commonly used, because the way to implement the interface is more flexible than the way to inherit classes, and it can also reduce the coupling between programs. 2, Inherit Thread class Thread class is the ...

Posted by Zephyr_Pure on Wed, 20 Oct 2021 11:57:26 -0700

springboot+nacos+dubbo+seata 0-based build tutorial

Preface Share a complete set-up tutorial of Ali's Distributed Transaction Framework Seata. I feel that this tutorial is rather detailed. Basically every necessary dependency and configuration item is clear and clear. In order to make it easier for everyone to get started, the registry and micro-service frameworks use Ali system, Nacos and Dubb ...

Posted by webmaster1 on Wed, 20 Oct 2021 09:59:09 -0700

Integrated Water Supply Management System Project: SpringBoot+Thymeleaf+mybatisPlus+bootstrap

1 Maven Maven is the most popular Java project building tool Why do I need to use Maven? Maven can help us manage jar packages and build projects automatically in Java Web development. 1.1 Install Maven Official download: Maven – Welcome to Apache Maven Installation: Decompress the package. Maven Core Profile Set.xml   1.2 Configuring ...

Posted by rgpayne on Wed, 20 Oct 2021 09:49:10 -0700

SpringBoot_day02 startup principle

Startup principle 1. How SpringBoot was started through the jar package What did java-jar do Let's first figure out what the java-jar command does, in oracle Official Web A description of the command was found: If the -jar option is specified, its argument is the name of the JAR file containing class and resource files for the applicatio ...

Posted by ghadacr on Wed, 20 Oct 2021 09:42:53 -0700

Review spring to review

Review the basic use of spring As the saying goes: knives don't need to rust after a long time, but knowledge can also be lost after a long time. This article reviews the basic use of spring. concept spring is a lightweight container (framework) for control inversion (IoC) and face-to-face (AOP) IOC: Control reversal refers to the tran ...

Posted by yogadt on Wed, 20 Oct 2021 09:13:07 -0700