Initialization of Spring @Bean instance
brief introduction
We all know that Spring has many ways to create beans, including using @ Component, @Service and other annotations, including implementing the ImportSelector or ImportBeanDefinitionRegistrar interface, calling AnnotationConfigApplicationContext#register to manually register beans, or defining beans in the @ Configuration cla ...
Posted on Fri, 26 Nov 2021 23:35:38 -0500 by starnol
Configure logback log for spring boot
Configure logback log for spring boot
As mentioned in the previous introduction to spring boot, the default log print of spring boot is logback, so configuring logback log will be very simple, but there are also some points to pay attention to.
Requirements for this configuration log
Log needs console printing and file printing.Among them, ...
Posted on Fri, 26 Nov 2021 19:14:09 -0500 by sdotsen
Summary of interaction between client and springboot REST interface parameter @ RequestParam @RequestBody
@Parameters of RequestParam annotation
Default behavior
Nothing is added in front of the parameter. The default function is @ RequestParam. However, ensure that the requested parameter name is consistent with the received parameter name
For example: Send an ajax request in an html page with a parameter named p
<!doctype html>
< ...
Posted on Fri, 26 Nov 2021 10:25:51 -0500 by Patch^
IoC and DI of Spring
Introduction to Spring
What is Spring
Spring is a lightweight open source framework for layered Java SE/EE application full stack, with IoC (Inverse Of Control) and AOP (Aspect Oriented Programming) as the kernel.
It provides many enterprise application technologies such as presentation layer SpringMVC, persistence layer spring JDBC template ...
Posted on Fri, 26 Nov 2021 08:24:04 -0500 by Encrypt
Spring boot hits the jar and scans the Bean under the jar package
<!-- jar plug-in unit -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manif ...
Posted on Fri, 26 Nov 2021 00:54:27 -0500 by macinslaw
SpringBoot integrates smart doc to generate interface documents
However, when I came into contact with smart doc, another interface documentation tool, I think it is more suitable for integration in the project than Swagger and is more suitable for old birds. Today, we will introduce the use of smart doc component as a supplement to the old bird series.
swagger vs smart-doc
First, let's take a look at the ...
Posted on Thu, 25 Nov 2021 22:55:11 -0500 by mattdarnold
Do you really know the past and present lives of Spring annotation driven? This article makes you suddenly enlightened!
This article, in the iteration from Spring 1. X to Spring 5.x, considers the development process of Spring annotation driven from the current perspective, which will help us better understand the annotation design in Spring.
Spring Framework 1.x
In the era of Spring Framework 1. X, 1.2.0 was the watershed of this era. At that time, Java 5 had ...
Posted on Thu, 25 Nov 2021 00:40:08 -0500 by pets2soul
Data "one click desensitization" based on Sharding Sphere
Name mobile phone numbers are often stored in databases, such as ID number, bank card number, name and phone number. Such information is usually required to store encrypted storage to meet compliance requirements according to compliance requirements.
Pain point 1:
The usual solution is to manually encrypt and insert the corresponding encrypte ...
Posted on Wed, 24 Nov 2021 22:15:35 -0500 by d3ad1ysp0rk
Serverless and microservice exploration - SpringBoot project deployment practice
prefaceAfter sharing the last article, some fans responded that the content was too theoretical and abstract to see the actual appearance.Therefore, I will write a tutorial here to teach you how to deploy a SpringBoot project to Serverless and test it successfully.The following link is my official article, but the official article will be consi ...
Posted on Wed, 24 Nov 2021 16:28:13 -0500 by saltedm8
How to "ingenious" complex attributes in spring IOC, spring MVC source code book
1, Write in front
==========
Hello, Hello, I'm grey ape, a program ape who can write bug s!
Last issue was with you** SSM programming diary **I shared with you the basic introduction of SSM framework and the basic introduction to springIOC, so today I will continue to tell you how to assign complex Properties in beans, such as a new bean, li ...
Posted on Wed, 24 Nov 2021 07:54:38 -0500 by pootergeist