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 const ...

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

[distributed core technology] Introduction to Dubbo Technology

Note output source: pull hook education Java employment emergency training camp In case of infringement, the private letter shall be deleted immediately Revised on: March 8, 2020 Author: pp_x Email: pp_x12138@163.com Dubbo overview Dubbo is a distributed system frameworkDubbo adopts the full Spring configuration mode, transparently acce ...

Posted by thipse_rahul on Wed, 06 Apr 2022 03:09:18 +0300

Object oriented programming internal mental skill series 10 (talk about agent mode)

1. Introduction We are all familiar with agency. If we have to give an example, for example, various intermediaries in life, such as the agent of star artists, are agents and agents in life. There are agents in the world of programmers, and we are all very familiar with agent design patterns. For example, when it comes to spring framework, yo ...

Posted by fredanthony on Wed, 06 Apr 2022 00:07:49 +0300

Establishment of canal under docker (with canal admin)

MySQL configuration For self built MySQL, you need to turn on the Binlog write function first, and configure Binlog format to ROW mode, my CNF is configured as follows [mysqld] log-bin=mysql-bin # Enable binlog binlog-format=ROW # Select ROW mode server_id=1 # MySQL replacement configuration needs to be defined. It should not be repeated w ...

Posted by chacha102 on Tue, 05 Apr 2022 23:57:43 +0300