2-springboot custom configuration process

1. Parent <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.4</version> </parent> <!--To view the parent configuration of its parent:--> <parent> <groupId>org.springframework.boot</groupId> ...

Added by CaptainStarbuck on Fri, 03 Sep 2021 02:41:41 +0300

Two encoding formats for Post requests: application/x-www-form-urlencoded and multipart/form-data

In common business development, POST requests are often used in these places: when front-end forms are submitted, when interface code is invoked, and when the Postman test interface is used.Let's take a look: 1. When a front-end form is submitted application/x-www-form-urlencoded Form code: <form action="http://localhost:8888/task/" meth ...

Added by brij_theinvader on Thu, 02 Sep 2021 19:28:07 +0300

REDIS12_ Overview of spring cache, @ Cacheable, @ CacheEvict, @ Caching, @ CachePut

① . Spring Cache overview ① . how to find the official documentation of Spring Cache (https://docs.spring.io/spring-framework/docs/5.2.17.BUILD-SNAPSHOT/spring-framework-reference/integration.html#cache) ② . Spring has defined org.springframework.cache.Cache and org.springframework.cache.Cache Manager interfaces since 3.1 to unify diffe ...

Added by dfr574 on Thu, 02 Sep 2021 07:18:55 +0300

Learning summary on September 1, 2021

What is the difference between factory mode and DI container In fact, the most basic design idea of DI container bottom layer is based on factory mode. DI container is equivalent to a large factory class, which is responsible for creating objects in advance according to the configuration (which class objects to create and which other class obj ...

Added by Lucidnight on Thu, 02 Sep 2021 03:53:42 +0300

[Spring MVC learning notes 3] deeply practice Spring MVC controller

In the previous Blog, we implemented the first framework program of Spring MVC based on configuration and annotation respectively. Next, this Blog makes an in-depth study and Discussion on our Controller. Since it is a Controller, it must contain two topics: receiving requests and returning responses. We will make an in-depth study on these two ...

Added by HaLo2FrEeEk on Wed, 01 Sep 2021 21:45:32 +0300

Spring Boot Tutorial 4: Using Druid and Monitoring Configuration

Druid is the best database connection pool in the Java language and provides powerful monitoring and extension capabilities. After comparing Druid with HikariCP, although HikariCP has a higher performance than Druid, Druid includes many dimensions of statistical and analytical functions, which is why everyone chooses t ...

Added by cwarn23 on Sat, 04 Jul 2020 18:32:49 +0300

Spring source code interpretation of "IOC container 2-Bean loading process"

In the last article, we implemented a simple IOC container. In this article, we will introduce the implementation of Spring IOC container. 1. Preparation In order to learn the source code implementation of Spring, we need to prepare the source code environment of Spring. At this time, we generally ...

Added by djg_uk on Tue, 30 Jun 2020 09:33:14 +0300

One article completes Spring Security exception handling mechanism!

Today, let's talk about the exception handling mechanism in Spring Security. In Spring Security's filter chain, the ExceptionTranslationFilter filter is specially used to handle exceptions. In the ExceptionTranslationFilter, we can see that exceptions are divided into two categories: authentication exceptions and authorization exceptions. The t ...

Added by trazan on Tue, 30 Jun 2020 05:57:58 +0300

XML Configuration for AOP

Basic usage steps Imagine a scenario where there is a business layer for saving and updating accounts and deleting them, but what do I do when I print logs for saving, updating, and so on? If we add code directly to the business tier, it's equivalent to adding code that doesn't matter.So here you can ...

Added by stevegg1965 on Mon, 29 Jun 2020 19:52:45 +0300

Spring source code third bullet! What the hell is EntityResolver?

Last article I talked with my friends about the parsing process of XML files in Spring source code. I could have continued to look down to load core classes, but SongGe still hopes to be a little slower. Since I have to learn to understand, I can learn from XML There are also some other classes and concepts involved in the process of file parsi ...

Added by ureck on Mon, 29 Jun 2020 05:02:29 +0300