How to integrate JWT in SpringBoot to realize login registration

JWT can be understood as an encrypted string, which consists of three parts: header, payload and signature It is used by the header and payload encrypted by base64 The JWT string is formed by connecting the strings, then encrypting them with salt secret combination through the encryption method declared in the header, and then forming the JWT ...

Posted by NFClimber on Sat, 01 Jan 2022 23:22:02 +0100

The effective principle of global exception handler @ ExceptionHandler&@ExceptionHandler from the source code

1. Start first In daily development, almost our projects use exception handlers. We usually customize our own exception handlers to handle all kinds of exceptions, large and small. At present, the most common way to configure exception handlers is to use the combination of @ ControllerAdvice+@ExceptionHandler. Of course, there are other ways, s ...

Posted by PHP_mySQL__Newbie on Sat, 01 Jan 2022 12:57:27 +0100

Springboot swagger old notes

brief introduction Front and rear end separation Vue+SpringBoot Back end era: the front end only manages static pages; HTML = = > back end. Template engine JSP = > the back end is the main force Era of front and rear end separation Front end - > front end control layer, view layer Forge back-end data, json. It already exists. ...

Posted by techiefreak05 on Sat, 01 Jan 2022 03:54:50 +0100

Spring Cloud + Vue e e-commerce project development practice - configure Druid and slf4j

Configure Druid The database connection pool is responsible for allocating, managing and releasing database connections. It allows applications to reuse an existing database connection instead of re establishing one. It releases the database connection whose idle time exceeds the maximum idle time to avoid database connection omission caused b ...

Posted by wazza on Fri, 31 Dec 2021 16:01:46 +0100

Convert a JSP/Servlet project to a Spring Boot project

Create Spring Boot application Before refactoring JSP applications based on Spring, we first introduce Spring Boot to make it a Spring Boot application. You only need to add simple configuration and a small amount of code on the basis of the original code to introduce Spring Boot. The whole process can be completed in 5 minutes. Here, we use ...

Posted by Pig on Fri, 31 Dec 2021 09:19:15 +0100

Service governance Nacos of Spring Cloud Alibaba

Spring Cloud Alibaba version dependency Add SpringBoot, SpringCloud and SpringCloudAlibaba version dependency integration, add core dependencies in dependency management, and add dependencies to be used in dependencies Spring cloud Alibaba Version Description: https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8 ...

Posted by Imad on Fri, 31 Dec 2021 07:55:04 +0100

RabbitMQ notes SpringBoot integrates RabbitMQ's simple container (consumer)

1, Introduction    message middleware has a series of functions, such as low coupling, reliable delivery, broadcasting, flow control, final consistency, etc. it has become one of the main means of asynchronous RPC, such as ActiveMQ, RabbitMQ, Kafka, RocketMQ, etc. The main functions of message oriented middleware are as follows: ...

Posted by GarroteYou on Fri, 31 Dec 2021 05:17:06 +0100

Spring learning day3: AOP, use of JdbcTemplate in spring

1.AOP 1.1 what is AOP In the software industry, AOP is the abbreviation of Aspect Oriented Programming, which means: Aspect Oriented Programming through precompiler Dynamic agent is a technology to realize the unified maintenance of program functions. AOP is the continuation of OOP, a hot spot in software development, an important content in ...

Posted by Kevin3374 on Thu, 30 Dec 2021 19:59:34 +0100

SpringBoot file fragment upload

background Recently, during the operation of several projects, customers have proposed whether the file upload size limit can be set larger. Users often need to upload several G data files, such as drawings and videos, and need to optimize the process of uploading large files, display the progress bar in real time, and expand and upgrade the fr ...

Posted by manitoon on Thu, 30 Dec 2021 14:23:51 +0100

Learning and using Springcloud Alibaba Sentinel

1, Concept introduction 1. What is fusing? 2. What is downgrade? 3. Difference? 4. What is current limiting? 2, Solution The comparison between Hystrix of springcloud and Sentinel of Alibaba is as follows: 3, Integrated use 1. springboot introduces Sentinel dependency Specify version number directly <dependency> <gr ...

Posted by skovela on Thu, 30 Dec 2021 14:10:12 +0100