Spring Boot interceptor configuration

catalogue preface Spring Boot version What is an interceptor? How to customize an interceptor? How to make it work in Spring Boot? Take a chestnut thinking According to what judgment, this interface has been requested? Where is this specific information stored? How? summary preface The last article talked about the basic conten ...

Posted by blear on Fri, 12 Nov 2021 01:08:24 -0800

Classes and objects in Java

catalogue 1, Preliminary cognition of class and object 2, Class and class instantiation 1. Basic syntax of class 2. Class instantiation 3. Member of class 3.1. Member variables / attributes 3.2 understanding 3.3 method 3, Construction method 4, Keywords 1. this keyword (1) Call the member variable through the this keyword (2) Calli ...

Posted by raku on Thu, 11 Nov 2021 21:57:10 -0800

Ten thousand words long text and practical cases make the abstract factory no longer abstract

This article is excerpted from "design patterns should be learned this way"1 about product hierarchy and product familyBefore explaining the abstract factory, we need to understand two concepts: product hierarchy and product family, as shown in the figure below.In the figure above, there are three kinds of figures: square, circle and ...

Posted by Fribbles on Thu, 11 Nov 2021 21:46:46 -0800

Java Web knowledge essential

Java Web knowledge essential web concept review Software architecture C/S: client / serverB/S: Browser / server Resource classification Static resource: all users get the same result after accessing, which is called static resource. Static resources can be directly parsed by the browser, such as html, css and JavaScriptDynamic resources ...

Posted by Lexi on Thu, 11 Nov 2021 21:28:45 -0800

Spring Boot configuration filter

catalogue preface Spring Boot version What is a filter? Implementation principle of Filter How to customize a Filter? How does Spring Boot configure a Filter? Use @ Bean injection in the configuration class [recommended] Use @ WebFilter Take a chestnut summary preface The previous article introduced how to configure interceptors ...

Posted by Gighalen on Thu, 11 Nov 2021 17:30:16 -0800

Using annotation + reflection to eliminate duplicate code is wonderful

Author: Leilei Chen Link: https://llchen60.com/ Eliminate duplicate code with annotation reflection/ 1.1 case scenario Assuming that the bank provides some API interfaces, the serialization of parameters is a little special. Instead of using JSON, we need to put the parameters together in turn to form a large string: 1) According to the ...

Posted by bruceg on Thu, 11 Nov 2021 16:45:59 -0800

Session Technology (Cookie vs. session)

1, Basic concepts Session: a session contains multiple requests and responses One session: the browser sends a request to the server resource for the first time, and the session is established until one party disconnects (the browser or client is closed) Function: share data between multiple requests within a session Method: Clien ...

Posted by jmdavis on Thu, 11 Nov 2021 16:05:44 -0800

Java learning plan 07: collections, generics

catalogue CollectionListSetgeneric paradigmMapCollections Collection Collection is the top-level interface of a singleton collection. It represents a set of objects, which are also called collection elements.JDK does not any direct implementation of this interface of the question bank, but provides more specific implementation of sub interfa ...

Posted by theex on Thu, 11 Nov 2021 14:31:17 -0800

One to one relationship mapping annotation @ OneToOne application in SpringData JPA

One to one relationship mapping annotation @ OneToOne application in SpringData JPA Spring Data JPA has one-to-one, one to many, many to many and other relationship mapping. This time, we mainly study one-to-one relationship mapping. One to one relationship mapping is very common in life. For example, a college student has only one all-in-one ...

Posted by jonemo on Thu, 11 Nov 2021 14:02:25 -0800

Spring learning 04 --- reflection, static proxy, dynamic proxy

Write in front: the proxy mode can add new functions without changing the originally written function classes. The difficulty of dynamic agent lies in the implementation of reflection mechanism, so it is necessary to understand the reflection mechanism. catalogue 1. Introduction to agency model 1.1 role of using agent mode 1.2 ways to imple ...

Posted by prem on Thu, 11 Nov 2021 12:19:02 -0800