SpringBoot learning notes
What is SpringBoot
It is a micro service scaffold, which can quickly build a micro service. Viewpoint: agreement is greater than configuration!!!
SpringBoot is currently the mainstream.
Create a SpringBoot microservice project
Spring officially provides a very convenient tool for us to quickly build applications
Spring Initializr: https:// ...
Posted by Yucky on Sat, 23 Oct 2021 16:57:28 +0200
One time pass of Spring source code compilation & solutions to problems encountered
preface
spring source code is compiled locally. According to the operation steps of online blog references, there will always be all kinds of inexplicable errors. Find a solution according to the error information, but you can't compile it in your own environment. Combined with the training and learning methods provided by teacher Jack, I trie ...
Posted by ir4z0r on Fri, 22 Oct 2021 13:41:26 +0200
Basic concepts of Spring startup process source code analysis
This article is to understand the Spring startup process step by step by reading the configuration class through the AnnotationConfigApplicationContext.
Before looking at the source code, we need to know the role of some classes, which is more convenient for subsequent understanding.
1,BeanDefinition
BeanDefinition is the definition of a bea ...
Posted by smeagal on Tue, 19 Oct 2021 20:16:38 +0200
Java - Spring MVC Framework Details
1. Comments on @RequestMapping
Add the @RequestMapping annotation before the method to process the request to configure the mapping relationship between the request path and the method to process the request!
In this note it is declared that:
@AliasFor("path")
String[] value() default {};
And:
@AliasFor("value")
String[] path() defaul ...
Posted by lettheflamesbegin on Tue, 19 Oct 2021 19:06:58 +0200
Spring -- [quick start, configuration file, dependency injection and API]
catalogue
Introduction to Spring:
1. Basic concepts of Spring:
2. Advantages of Spring:
3. Spring architecture
Spring quick start
Spring configuration file
1. Bean tag basic configuration
2. Bean tag range configuration
3. Bean lifecycle configuration:
4. There are three ways to instantiate a Bean
5. Introduction to Bean dependency i ...
Posted by johnc71 on Tue, 19 Oct 2021 02:28:46 +0200
Getting started with Graphql
preparation:
1. Import the open source demo of springboot integrated graphql spring-boot-graphql: spring-boot-graphql demo
2. Download postman
Next, you can learn graphql
The first step is to change the data source in springboot into its own test database
Step 2 pay attention to the package framed in the figure below
First, how t ...
Posted by xdentan on Mon, 18 Oct 2021 21:40:21 +0200
Annotation and reflection
Annotation and reflection - Annotation
What is annotation
Explain a meaning to a computerCan be read by other programs
//What is annotation?
public class dom1 extends Object{
//Rewrite annotation
@Override
public String toString() {
return super.toString();
}
}
Format: @ comment name, and some parameter values can b ...
Posted by solon on Mon, 18 Oct 2021 08:58:30 +0200
Can't you remember the life cycle of Spring Bean? Read this article and you will know the method!
1, Foreword
Last time we were Teach you how to solve circular dependency step by step, and explore the mystery of L3 cache step by step The way Spring solves circular dependency is analyzed in. In Section 6, doCreateBean (AbstractAutowireCapableBeanFactory class) has vaguely seen several stages of the Bean's life cycle.
protected Object d ...
Posted by The_Black_Knight on Sat, 16 Oct 2021 21:06:28 +0200
Spring5 learning notes (14) - "spring5 declarative transaction management"
1, Transaction operation
1. Transaction concept
2. Build a business environment
1. Create database tables and add records 2. Create a service, build a dao, and complete the object creation and injection relationship (1) service is injected into dao, JdbcTemplate is injected into dao, and DataSource is injected into JdbcTemplate
@S ...
Posted by greensweater on Sat, 16 Oct 2021 21:00:21 +0200
Use Knife4j API management in project practice
🎆 Knife4j API management
1. Foreword
Recently, we have developed a background management system of Neo4j+elasticsearch+mysql as the database. The main function is to use the characteristics of the graph database to store the knowledge point data in different disciplines. At present, the first version of the system has been developed. Wi ...
Posted by scottfossum on Sat, 16 Oct 2021 20:18:08 +0200