Injection method and Bean life cycle in Bean dependent on injection - spring madness
catalogue 1. set injection (key) 2. Scope of Bean 2.1,Singleton 2.2, Prototype 2.4, Session
Dependency injection (DI). Dependency: the creation of a Bean object depends on the container. The dependent resources of a Bean object Injection: refers to the resources that the Bean object depends on, which are set and assembled by the c ...
Posted by freeloader on Sun, 26 Sep 2021 00:02:04 -0700
[Mybatis] explain the core configuration file
🌈 I'm lucky to meet you. I'm Xiao Xiang. Have a big factory dream, work hard! Come on, stranger! 🌈 ☁️ This article is the notes and experience of learning Mybatis from the crazy God of station B. if it is useful to you, thank you for your praise. The article inevitably has shortcomings. Please point out that I will correct it in time!
T ...
Posted by vyb3 on Sat, 25 Sep 2021 11:44:36 -0700
Idea creates a simple MyBatis project
catalogue
Article catalog
preface
1, Create Maven project
2, POM configuration
1. Configure JDK version and encoding method
2. Set resource file path
3. Add dependency
4. All of POM documents
3, Initialization data
4, Configure mybatis-config.xml
5, Configure config.properties
6, Configure log4j.properties
7, Create t ...
Posted by Illusion on Sat, 25 Sep 2021 10:45:55 -0700
[Spring Boot] Spring Boot Tomcat connection pool usage example
This page will introduce an example of Spring Boot Tomcat JDBC connection pool.
Tomcat connection pool supports high concurrency environment with high performance.
Tomcat connection pooling is very simple because its implementation is very simple.
Tomcat connection pool has the ability to configure custom interceptors to better handle id ...
Posted by AP81 on Fri, 24 Sep 2021 02:07:40 -0700
[PROJECT] health project day4 summary
Chapter 4 appointment management - scheduled tasks Quartz, appointment settings
1. Timed task component Quartz
[Objective]
Scheduled task component Quartz
Clear the garbage pictures generated by file upload
[path]
1: Introduction to Quart
Master the scene (scheduled task)
2: Introduction to Quartz
Spring integration Quartz (configured ...
Posted by thefarhan on Wed, 22 Sep 2021 08:39:48 -0700
Flume file configuration method and maven
Configuration introduction
in general:
source is used to receive data sinks are used to send data channel is used to cache data
The following are some related types that will be used later. 1.Source component type (used to receive data sent from a certain place)
Netcat Source Accept the request data from the data client, which is often ...
Posted by burningkamikaze on Tue, 21 Sep 2021 15:54:33 -0700
Data collection jsoup
Data collection jsoup
-jsoup introduction: 1. jsoup is a Java HTML parser, which can directly parse a URL address and HTML text content. 2. The main functions of jsoup are as follows: -Parsing HTML from a URL or string; -Use DOM or CSS selector to find and retrieve data; -Operable HTML elements, attributes and text; 3. jsoup is released based ...
Posted by ldtiw on Tue, 21 Sep 2021 04:15:34 -0700
SpringBoot + Maven parent-child module project
project
Eclipse editor, create a new project student using maven's parent-child module function, which is divided into three modules: student web, student-setting, student-util. Student web is packaged as a war package. As a project, student setting and student util are packaged as jar packages and introduced into student web as depend ...
Posted by FaT3oYCG on Mon, 20 Sep 2021 10:36:11 -0700
SSM primary integration (book management system)
1. Create a new MAVEN project and import the required dependent and static resource files
<dependencies>
<!--junit rely on-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency&g ...
Posted by ntohky14 on Tue, 07 Sep 2021 11:38:12 -0700
Teach you how to integrate SSM to implement a simple CRUD project
Project notes
1, Project introduction
This is a simple CRUD(Create Retrieve Update Delete) web page project based on SSM framework. The IDE used is IDEA2021.1. Due to the time problem, this article will introduce the first two parts. The problems and solutions that are easy to encounter in the project will be given in the following articl ...
Posted by bradcis on Sun, 05 Sep 2021 13:41:59 -0700