Spring IoC container and Bean management

Starting from this section, I will learn the most important framework system in the advanced stage of Java, named spring. Spring is the most important part of the entire Java ecosystem. Because I am also a beginner, my generalization is not necessarily comprehensive and refined. Write this chapter just for your future review. 1, Spring I ...

Posted on Thu, 18 Nov 2021 05:54:12 -0500 by savingc

RESTFul and SSM cases

1. RESTFul 2.1 what is RESTFul RESTFul programming is a style, not a protocol. Interpretation of HTTP protocol (landing scheme) and landing of request mode http There are 7 protocols in total, 4 common and 2 longest get post put delete RESTFul specifies the operation of the server program. Each operation consists of: request path + req ...

Posted on Wed, 17 Nov 2021 19:22:09 -0500 by biodrux

springboot static resource access

2.1 static resource access 1. Static resource directory Under classpath: /static /public /resources /META-INF/resources visit:Current project root path/ + Static resource name What spring official documents tell us: In fact, it maps / * *, that is, as long as you write the resource name, it will automatically find the static resource f ...

Posted on Wed, 17 Nov 2021 05:58:19 -0500 by xux

Spring+Mybatis integrates core knowledge

Spring+Mybatis integrates core knowledge points 1. How does Spring integrate with Mybatis? (1) Configure data sources (2) configure SqlSessionFactory (3) Configure Dao (4) Configure Service Code case: Configure datasources (data source, connection pool) <!--Required dependencies: 1 driverClassName 2,url 3,username 4,password--> &l ...

Posted on Tue, 16 Nov 2021 11:49:12 -0500 by yazz

During the interview p7, Ali was rubbed on the ground. Who knows what I've experienced?

Questions Ali p7 was asked during the interview (I only knew the first one at that time): @What does Conditional do? @Conditional what is the logical relationship between multiple conditions? When is conditional judgment performed? What is the difference between ConfigurationCondition and Condition? When to use ConfigurationCondition? Wha ...

Posted on Tue, 16 Nov 2021 07:26:35 -0500 by MHardeman25

Thoughts on bridging methods caused by Spring dependency injection

When Spring looks for the injection point, there is a findBridgedMethod to find the bridging method? What is the bridging method? Let's take a look at a scenario of generating bridge methods: when a subclass inherits (or implements) the generic methods of a parent class (or interface), the generic type is explicitly specified in the subclass, ...

Posted on Fri, 12 Nov 2021 15:56:11 -0500 by abushahin

Spring file configuration of SSM / how spring performs dependency injection in pom file / what are the different dependency injection types and how to write them

Write before: Then record your Spring learning journey. If you don't understand it, it is recommended to read a blog first Spring of SSM framework introduces the development process / IDEA how to build a spring project , detailed codes can be found in My Gitee warehouse SSM learning Clone download learn to use! 1.3 Spring configuration file 1 ...

Posted on Thu, 11 Nov 2021 18:01:03 -0500 by ProTec

AOP technology in Spring

AOP (aspect oriented programming) aspect oriented programming The unified maintenance of program functions through precompile or runtime dynamic agent can be understood as extending functions without modifying the source code. Execution flow of Java program The process of program running is the process of method calling. We arrange the method ...

Posted on Thu, 11 Nov 2021 17:04:58 -0500 by hussain

Spring Bean lifecycle

Bean generation process Generate BeanDefinition 1. First, obtain all. class files under the specified path through ResourcePatternResolver (this file is packaged as a Resource object in Spring source code) 2. Traverse each Resource object 3. Use MetadateReaderFactory to parse the Resource object to get the MetadataReader. 4. Use MetadateRe ...

Posted on Thu, 11 Nov 2021 13:35:46 -0500 by Manat

AOP (Face Oriented Programming) for Spring's Three Cores

AOP (Face Oriented Programming) for Spring's Three Cores Before learning the AOP of Spring's three core ideas, it is recommended that you learn: ๐Ÿ”ด1,Srping's IOC Thought and Use ๐Ÿ”ด2,Agent mode for underlying design mode of Spring core idea AOP ๐Ÿ… Programmer Xiao Wang's blog: Programmer Xiao Wang's Blog ๐Ÿ… Welcome ๐Ÿ‘ Collection โญ Leaving a ...

Posted on Thu, 11 Nov 2021 11:49:14 -0500 by jasonc310771