Scope and lifecycle of Bean

1. Scope of bean In Spring, set whether to create a bean instance as a single instance or multiple instances. Generally speaking, our configuration file is in xml <bean id="name" class="route"> After this configuration, we can get the bean instance we created through our test class. In Spring. The bean instances we create can be single ...

Posted by Tsukasa on Thu, 07 Oct 2021 11:02:40 -0700

What are Spring Profiles and how to use them

[copyright notice] for non-commercial purposes, indicate the source and can be reproduced freely From: shusheng007 summary When you first came into contact with SpringBoot, did you feel a little uncomfortable with the Profile it provided? After groping, you realized its power. Today, I will summarize the Profile and keep it as an Intern ...

Posted by d-woo on Wed, 06 Oct 2021 23:56:03 -0700

Spring Security - getting started

The notes of this article are from the dark horse video https://www.bilibili.com/video/BV1vt4y1i7zA , relevant information can be obtained in the comment area of the video. This information includes the background management system for preparing a semi-finished product in advance. If you want to improve another part, you need to use spri ...

Posted by factoring2117 on Wed, 06 Oct 2021 14:19:13 -0700

I was asked about the principle of Springboot automatic assembly during the interview. I'm sorry, hold it!!! No loss in collection

springboot version 2.5.5 Debug Roadmap Many words are tears. Let's look at the picture. Let's start with run After using Springboot for so many years, what has this run() method done? @SpringBootApplication public class SpringbootDemoApplication { public static void main(String[] args) { SpringApplication.run(SpringbootD ...

Posted by EdN on Wed, 06 Oct 2021 12:53:48 -0700

Spring MVC ------ exception handling

exception handling Exception handler Exception classification management code: import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerExceptionResolver; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRespon ...

Posted by almystersv on Tue, 05 Oct 2021 17:42:20 -0700

The five core components of spring cloud are brother Jun and brother Hou

Summary of spring cloud notes of Leyou project The mapper module of ly item commodity contains datasource Ly Cart: Shopping Cart module Ly registry: registry server, other modules are clients Ly API gateway: routing gateway Ly feign: remote call Registration Center Eureka, ly registry server Lyregister the Module as the server The s ...

Posted by pimp3679 on Tue, 05 Oct 2021 11:14:53 -0700

Littlebattis: implementation of a simple semi-automatic ORM framework

  Readme          After learning the ORM chapter of Spring 5 core principles and 20 class handwriting practice, I want to write a simple ORM framework myself. The first few chapters are moved to the editor according to the code in Tom's book, and have a general understanding of the core principles o ...

Posted by vidago on Tue, 05 Oct 2021 10:32:36 -0700

Simple Spring-Aop steps

1. What is Spring Aop? AOP(Aspect Oriented Programming Face-to-Face Programming) is a design idea. It is a kind of improvement of oop. It enhances the business function of the target object by dynamic proxy during compile or run time, that is, expands the function of the target object. There are two ways to extend the function if using traditi ...

Posted by Karve on Tue, 05 Oct 2021 09:40:00 -0700

[Spring] IoC Control Reverse: What is IoC? What is a container? Write a simple Spring program to see!

Two months ago, I completed the Spring Framework with the Spring Framework tutorial video of Mr. Wang He, the power node of station b. During the learning process, I tapped the code involved in the video line by line, and sorted out the materials related to the introduction of Spring. Here I record my notes and some insights during the learning ...

Posted by ozman26 on Tue, 05 Oct 2021 09:27:35 -0700

@Concepts, differences and execution order of PostConstruct, @ PreDestroy and initMethod, destroyMethod, InitializingBean and DisposableBean

@Concepts, differences and execution order of PostConstruct, @ PreDestroy and initMethod, destroyMethod, InitializingBean and DisposableBean @PostConstruct Definition related This annotation is added to the Java EE5 specification, not spring. Spring means that it follows this specification and plays a certain role in the Servlet life cy ...

Posted by magic-eyes on Mon, 04 Oct 2021 13:01:33 -0700