Spring Boot implements common functions of the Web
Spring Boot implements common functions of the Web
Usually, in Web development, it involves the access support of static resources, the configuration of view parser, the customization of converter and formatter, file upload and download, and even the customization of Servlet related components associated with Web server. Spring Boot framework ...
Posted by rjs34 on Sun, 26 Sep 2021 12:43:51 +0200
Spring/SpringBoot -- deferred loading / Lazy loading / deferred initialization / @ Lazy annotation -- use / usage / principle
Original website: Spring/SpringBoot -- deferred loading / Lazy loading / deferred initialization / @ Lazy annotation -- use / usage / principle_ CSDN blog
brief introduction
explain
Delayed initialization is often referred to as "lazy loading".Definition of delayed initialization: a Bean is not initialized at startup and is not ...
Posted by H4mm3r3r on Sat, 25 Sep 2021 03:34:55 +0200
Beginners learn spring transaction processing
Transaction processing in Spring
question answering
1. What is a transaction
speak mysql When a transaction is proposed, a transaction refers to a group sql A collection of statements with multiple entries in the collection sql sentence
It may be insert, update, select, delete or a combination. We hope these multiple sql statements can suc ...
Posted by pearllysun on Fri, 24 Sep 2021 10:17:06 +0200
Amazingly, how easy is Spring JdbcTemplate to write, delete, and check?
This article was intended to write about spring transactions, but JdbcTemplate-related functionality is used in most cases of transactions, so let's start with JdbcTemplate.
What is JdbcTemplate?
To review, the original way to operate db in java is pure jdbc. Whether every operation db needs to load database drivers, get connections, get Prep ...
Posted by buckboru on Thu, 23 Sep 2021 18:39:19 +0200
SpringBoot exception handling
By default, the Spring Boot project error page and information will be displayed directly on the browser. As shown below:
However, after the project is actually launched, the user experience is absolutely terrible. You should give users a more friendly error prompt after encountering an error.
Error page prompt
Set specific status cod ...
Posted by donny1298 on Thu, 23 Sep 2021 16:44:24 +0200
Spring MVC file upload
Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it
1, About multipart requests
The data submitted by the forms we generally use are text data, such as our user information form. When the form is submitted, the "attribute value" ...
Posted by WebMonkey on Thu, 23 Sep 2021 15:02:27 +0200
Java notes: spring IoC
IoC container
Container is a software environment that provides necessary support for the operation of a specific component. IoC refers to Inversion of Control
Components assembled in IoC container need some kind of "injection" mechanism
For example, a component needs a datasource. Instead of creating a datasource, it waits for the ...
Posted by Pryach on Thu, 23 Sep 2021 13:58:19 +0200
Brief Analysis of JDK Dynamic Agent and CGLIB Dynamic Agent
Analysis of Agent Model
1. What is proxy mode
What is the agent mode? First of all, a simple example is Zhang San (user) wants a ticket for a concert but he has no channel to buy it. Then his friend Li Si (agent) said he can buy tickets for a concert (agent method).In some cases, one object is not suitable or cannot directly refer to another ...
Posted by tommyrulez on Tue, 21 Sep 2021 01:34:27 +0200
Learning how to use Spring's own tool classes
Most of our projects are based on spring architecture. Spring itself contains many practical tool classes. Learning the use of these tool classes can not only achieve twice the result with half the effort, but also reduce the introduction of unnecessary additional tool classes. When you view the source code of these tool classes, you can find t ...
Posted by Chamza on Mon, 20 Sep 2021 22:00:51 +0200
dubbo basic application
1,Dubbo
1.1 introduction to Dubbo
Apache Dubbo is a high-performance Java RPC framework. Its predecessor is Alibaba's open source and lightweight open source Java RPC framework, which can be seamlessly integrated with the Spring framework. In 2018, Alibaba donated this framework to the apache foundation
1.2 Dubbo architecture
dubbo consi ...
Posted by MichaelHe on Mon, 20 Sep 2021 21:35:35 +0200