preface
Taking the spring container created in the Web project as the starting point, this paper describes the initialization process of WebApplicationContext. Spring version 4.3.18 RELEASE.
1, Initialization entry
In the development of Web project based on Servlet+Spring, if the implementation class of WebApplicationContext is no ...
Posted by g00fy_m on Sun, 08 May 2022 20:14:13 +0300
catalogue
What is annotation
What is the Spring framework
Relationship between SpringBoot and SpringClound
Common SpringBoot project development methods
Recommended solutions for learning new technologies
What is annotation
Java annotation is some meta information attached to the code, which is used for parsing and using some tools dur ...
Posted by chigley on Sun, 08 May 2022 09:10:50 +0300
Why POM You do not need a version to import dependencies in an XML file?
SpringBoot is a Maven project in the final analysis. We usually start from POM XML file; In the past, whether it was java web or SSM, we were in POM The import dependency in the XML file needs to implement its version, but there is no version in the SpringBoot project ...
Posted by ThunderAI on Sun, 08 May 2022 07:00:13 +0300
preface
Recursion is a very important algorithm idea. You need to master it whether you are front-end development or back-end development. In daily work, recursive algorithms are needed to count the size of folders, parse xml files and so on. It's too basic and important, which is why interviewers often ask us to write recursive algorithms. In ...
Posted by NoMansLand on Sun, 08 May 2022 06:34:17 +0300
Article reference source I'll start with the following principles when the startup class starts. It's also an entry point for my own learning! First, there is an annotation @ SpringbootApplication on the startup class. This annotation is a composite annotation or derived annotation, which contains three annotations:
@Target(ElementType.TYPE)
@ ...
Posted by Web For U on Sat, 07 May 2022 10:19:46 +0300
@[TOC]
xml way to customize the implementation of the Ioc container
Use xml to implement a custom simple Ioc container
foreword
In the usual development process, we all use Spring for development. The Ioc container at the core of Spring helps us to create objects. This process is called inversion of control, also called Ioc.When an object is in ...
Posted by roydukkey on Sat, 07 May 2022 07:32:39 +0300
1. Basic use of spring
Guide Package:
commons-logging-1.2.jar
spring-beans-5.2.3.RELEASE.jar
spring-context-5.2.3.RELEASE.jar
spring-core-5.2.3.RELEASE.jar
spring-expression-5.2.3.RELEASE.jar
Write configuration: Person.java package com.mashibing.bean;
public class Person {
private int id;
private String name;
private int ...
Posted by oliverj777 on Sat, 07 May 2022 04:31:33 +0300
Notes and their functions:
@Configuration: configuration annotation, which is modified on the configuration class. It tells Spring that this is a configuration class, and the configuration class is equivalent to the configuration file.
@ComponentScan: component scanning annotation, decorated on the configuration class, specifies the package t ...
Posted by Shawazi on Sat, 07 May 2022 01:07:17 +0300
I met a very strange problem while debugging the company's project a few days ago. Today I'll study it here
Follow official account: Java architects alliance, update technical articles every day
scene
As a PDA interface is newly added to the company to query the historical parking flow data, I first check the qualified data from the database ...
Posted by Sangre on Fri, 06 May 2022 20:42:28 +0300
Send HTTP requests using Feign
In the usual HTTP calls, the RestTemplate provided by the government has always been used for remote calls. This call method redundancies the assembly code into the normal business code, which is not elegant enough. Therefore, after contacting Feign, consider using Feign as an HTTP sending basis for remote calls.
...
Posted by duclet on Fri, 06 May 2022 15:05:17 +0300