Four ways for IOC container to create bean objects
preface:
The Spring container creates a bean object. Generally, it finds the class to be instantiated by looking up the class attribute value of the bean element through the reflection mechanism, so as to instantiate the bean object. This is to call the constructor to instantiate the bean object In some cases, a simple xml configuration file ...
Posted by VinnyWolf on Mon, 06 Dec 2021 22:12:24 -0800
The Spring framework uses JDBC template to connect to the database
JDBCTemplate
JDBC template (concept and preparation)
What is a JdbcTemplate
The Spring framework encapsulates JDBC and uses JdbcTemplate to facilitate database operation preparation
Introduce related jar packages [the external chain image transfer fails. The source station may have an anti-theft chain mechanism. It is recommended to ...
Posted by samsunnyuk on Mon, 06 Dec 2021 20:53:20 -0800
Spring transaction management
Spring transaction management
1. Business
What is a transaction A set of operations either succeeded or failed Characteristics of transactions ACID
Atomicity, a group of operations is a whole, either all successful or all failed, and cannot be separatedConsistency: the data is consistent before and after the transactionIsolation: multipl ...
Posted by romic on Mon, 06 Dec 2021 20:52:09 -0800
Springboot+AOP + custom annotation implements operation log and exception log
In our daily work, we often encounter the need to implement the functions of operation log, login log, error log, etc. the young partners who have just joined the company do not know what to do, or the first idea is to write a method to add to the log table in each method in the business code, bu ...
Posted by LonelyPixel on Sun, 05 Dec 2021 22:09:11 -0800
Spring5 Quick Start [Basic Summary]
1. Spring5
1.1 Introduction
Spring - > brings spring to the software industry!The Spring framework is redesigned based on interface21!Spring concept: Making existing technology easier to use is a hodgepot that integrates existing technology frameworks!Spring is a lightweight framework for IoC and AOP containers. A framework for providing b ...
Posted by rodolp13 on Sun, 05 Dec 2021 21:03:56 -0800
11 spring web - commodity module implementation
1. Complete commodity classification business
1.1 page JS analysis
Life cycle function
//Define initialization function
created() {
//Get commodity classification list data by default
this.findItemCatList()
},
Get data function description
async findItemCatList() {
const {
data: result
} = a ...
Posted by sometimes on Sun, 05 Dec 2021 20:35:32 -0800
Online problem handling - feign call error (legal character ((ctrl-char, code 31)): only regular white space (\ R \ n \ T))
Online problem handling - feign call error
Business scenario: Service 1 invokes service 2 through Feign. In the test phase, everything is normal and there is data loss online (to avoid simple reproduction of sensitive local). Errors are reported as follows:
2021-12-04 13:47:47.774 DEBUG 29480 --- [io-10011-exec-1] .w.s.m.m.a.ServletInvocableH ...
Posted by jokeruk on Sun, 05 Dec 2021 18:01:22 -0800
Spring mvc-part02 first MVC program
2. First MVC program
Hello,SpringMVC
2.1 configuration version
1. Create a new Moudle, springmvc-02-hello, and add web support!
2. Confirm that the dependency of spring MVC is imported!
3. Configure web.xml and register dispatcher Servlet
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://xmlns.jcp.org/xml/ns/javaee" ...
Posted by moyse on Sun, 05 Dec 2021 17:21:12 -0800
Introduction to SringMVC Framework
Catalog
view resolver
Exception Handler
Interceptor
File Upload
JSON data interaction
RESTful support
view resolver
View Parser: Add the page path section to the configuration file
No View Parser
return "/WEB-INF/show01.jsp";
With ...
Posted by wgordonw1 on Sun, 05 Dec 2021 13:47:59 -0800
Application practice of integrating MyBatis with SpringBoot
catalogue
MyBatis environment initialization
summary
Create project module
Add project dependency
Mybatis simple configuration implementation.
Create project startup class
Environment test code implementation
Announcement data layer MyBatis practice
Business description
Pojo class design
Dao interface and method
Implementation and a ...
Posted by tsfountain on Sun, 05 Dec 2021 13:42:58 -0800