Spring source code reading - creation of AnnotatedBeanDefinitionReader

1. General As a field of AnnotationConfigApplicationContext public class AnnotationConfigApplicationContext extends GenericApplicationContext implements AnnotationConfigRegistry { /** * Annotation Class reader / processor, created in constructor * AnnotatedBeanDefinitionReader When instantiated, some BeanDefinition has been inj ...

Posted by TimUSA on Fri, 08 Apr 2022 16:52:40 +0300

Realization of login function

This is a simple login function based on the ssm framework 1. Front landing page <form action="/login"> <div id="r1" align="center"> <img src="/imgs/w.jpg" alt="hhhh" width="200" height="200"> <div> user name:<input type="text" name="name"><br><br> dense&nbsp;&nbsp;&nbsp;&nbsp;Code ...

Posted by tweek on Fri, 08 Apr 2022 11:04:58 +0300

RabbitMQ usage code example

1. Overview of Message Oriented Middleware 1.1. What is message oriented middleware The full name of MQ is Message Queue. Message Queue is the communication method between applications. Why use MQ In the project, some time-consuming operations that do not need immediate return can be extracted for asynchronous processing, which greatly sav ...

Posted by Yucky on Thu, 07 Apr 2022 19:11:05 +0300

Great. It takes only four steps to integrate spring Security + JWT to achieve login authentication

1, About spring security Before the emergence of Spring Boot, the usage scenario of spring security was firmly dominated by Shiro, another security management framework, because the integration of Shiro in SSM is more lightweight than that of spring security. The emergence of Spring Boot has greatly changed this situation. Just as the old sayi ...

Posted by dwu on Thu, 07 Apr 2022 14:08:10 +0300

Common Spring configurations

1. Scope of bean Scope describes how the spring container creates a new instance of a Bean. Spring's scope has the following types, which are implemented through @ scope annotation. (1) Singleton: there is only one Bean instance in a Spring container. This is the default configuration of Spring. The whole container shares one instance. (2) Pro ...

Posted by drawmack on Thu, 07 Apr 2022 13:53:50 +0300

SSM [Mybatis chapter - association mapping of Mybatis]

Association relationship In relational database, there are three kinds of association relationships between multiple tables, which are one-to-one, one to many and many to many. One to one: introduce the other party's primary key as a foreign key on either side. One to many: on the "many" side, add the primary key of the "one ...

Posted by theverychap on Thu, 07 Apr 2022 12:19:39 +0300

It may be the first project using RediSearch in the whole network

Actual project address newbeemall , RediSearch is integrated. The open source code has been uploaded. If it is supported, you can click star šŸ˜RediSearch It is an application developed based on Redis that supports secondary index, query engine and full-text search. In version 2.0, take a brief look at the official website test report:Index cons ...

Posted by johnsiilver on Wed, 06 Apr 2022 19:35:54 +0300

Cause analysis and solution of asynchronous method failure when springboot uses @ Async annotation

Ā  1, Foreword When using the @ Async annotation of the springboot framework for the first time, many small partners may find that the @ Async annotation is clearly added to the method and the @ EnableAsync annotation is also added to the startup class, but the method is still not executed asynchronously. 2, Think It is very likely that one me ...

Posted by sheridan on Wed, 06 Apr 2022 19:32:18 +0300

Maven installation and use

catalogue maven introduction and installation maven project management Building multi module applications maven installation additional dependencies maven introduction and installation Maven is a project management and build tool. Maven provides developers with a complete lifecycle framework. The development team can automatically comp ...

Posted by idontkno on Wed, 06 Apr 2022 15:02:47 +0300

Spring MVC learning notes

1, Spring MVC Spring MVC is a web framework based on MVC design concept officially provided by spring Spring MVC is a framework for realizing MVC control based on Servlet encapsulation, which realizes the interaction between front-end and server-side 1.1 Spring MVC advantages It strictly abides by the idea of MVC layeringAdopt loose c ...

Posted by steve8557 on Wed, 06 Apr 2022 11:02:04 +0300