spring custom filter / interceptor

1, Filter What is a filter? You can think of it as a sieve, which filters out some parameters in request and response1. Import related jar packages Import the common jar package in the pom file <!-- commons Shared package, used by filter interceptor --> <dependency> <groupId ...

Posted by treppers on Sat, 13 Jun 2020 01:35:15 -0700

SpringBoot integrates Swagger2 to generate API interface documentation

SpringBoot 2.3.0 Integrated Swagger2 Introduce Swagger2's corresponding dependencies Example of getting started Startup error after SpringBoot2 integration with Swagger2 epilogue Background: Recent work has found that interface protocols and actual business code provided by back-end developers are ...

Posted by Bad HAL 9000 on Fri, 12 Jun 2020 18:54:35 -0700

SpringBoot injection multi instance, multi thread processing

Another post: Spring Boot tutorial 16: implementing multithreading with Spring Boot injection class SpringBoot injection multi instance, multi thread processing   Seeing this title, I'm sure many people will be puzzled. Looking back on your own scenarios, we will find that in Spring projects, multithreading is rarely used to process tasks. Y ...

Posted by iwarlord on Thu, 11 Jun 2020 21:37:04 -0700

SpringBoot event listening

summary The Spring framework provides a perfect event monitoring mechanism. The steps to implement event monitoring in the Spring framework are as follows: Custom events, inheriting org.springframework.context.ApplicationEvent abstract class Define event listener, implement org.springframework.contex ...

Posted by phpsir on Tue, 09 Jun 2020 01:51:07 -0700

Analysis of SpringBoot startup process

Analysis of SpringBoot startup process It has been two years since we used spring boot for development, but we haven't thoroughly understood its relevant source code. In the near future, we can carefully read and analyze the relevant source code. In this paper, we start our analysis and study from the s ...

Posted by eatc7402 on Sat, 06 Jun 2020 21:20:19 -0700

Deep learning of spring boot source code -- spring factorysloader

preface   if you want to learn the source code in depth, you must first learn to understand its notes, after all, it is first-hand knowledge. We all know what an excellent framework spring boot is. It has brought great convenience to Java developers, and there is no need to integrate SSM, so we w ...

Posted by TheVoice on Thu, 04 Jun 2020 23:31:33 -0700

What exactly did spring boot do?

Preface For server-side development, most new projects are based on spring boot. Projects using spring boot typically have this line of code SpringApplication.run(TestApplication.class, args); This is where the Spring boot framework loads.It's a whim to see what it's doing. new SpringApplication(primarySources)) The run method first creates a ...

Posted by evmace on Tue, 02 Jun 2020 01:51:44 -0700

The applet uploads multiple pictures to the spring boot background and returns the accessible picture links

Recently, many pictures of small programs are uploaded to the Java background, which is written with springboot. Also is stepped on many pits, today will take you to step by step to achieve the upload of small program side many pictures. First, look at the effect realization diagram Callback for successful upload of appletPrint after receiving ...

Posted by Timma on Sun, 31 May 2020 08:05:14 -0700

Four ways to read the properties file in SpringBoot

preface Configuration files are often used in project development. The existence of configuration files solves a lot of repeated work. Today, I'll share four ways to get configuration files in spring boot. Note: the first three test configuration files are spring boot default application.properties file ############ ...

Posted by shaneiadt on Sun, 31 May 2020 07:32:08 -0700

Spring Boot Tutorial - Test

1. Introduction to Application Testing Usually after we have written the code, the test of the code will be given to a dedicated tester to test. If a test runs to your job and says to you that your code seems to have a Bug, you will be unhappy. That's what I am doing anyway(viii).So to show you that your code is a bit of a good quality, we'll t ...

Posted by vinny69 on Sat, 30 May 2020 10:06:20 -0700