07 spring MVC file upload, interceptor and exception handling
Spring MVC file upload
1 - spring MVC request - file upload - client form implementation (application)
The file upload client form needs to meet the following requirements:
Form item type = "file"
The form is submitted by post
The enctype attribute of the form is a multi part form, and enctype = "multipart / form data" ...
Added by autocolismo on Sun, 02 Jan 2022 19:43:27 +0200
IOC chapter of Spring source code analysis
Learning focus
Don't think back! Don't think back! Don't think about reciting!: Gradually understand along the process and ideas.
Unity of knowledge and practice! Unity of knowledge and practice! Unity of knowledge and practice!: After learning each stage of knowledge, be sure to document output or practice.
OK, finish the point, let's s ...
Added by radar on Sun, 02 Jan 2022 19:24:13 +0200
2021-12-28 Spring day4 (dynamic proxy, Aop five notifications)
1, Aop
Aspect Oriented Programming is a supplement to object-oriented thinking.
Aspect oriented programming is to dynamically enhance the function of the method without changing the program source code when the program is running. There are many common use scenarios:
journalTransaction -- common code extractionDatabase operation...
The ...
Added by complex05 on Sun, 02 Jan 2022 18:28:54 +0200
aop aspect oriented programming
If there is no aop, when doing log processing, we will add log processing in each method, such as
But the processing code is the same in most days. In order to realize code reuse, we may separate log processing into a new method. However, we still have to insert these methods manually.
But these two methods are strongly coupled. If we don ...
Added by mikebr on Sun, 02 Jan 2022 18:17:36 +0200
IoC decoupling learning and practice of Spring
Overview of Spring
What is spring
Spring is a lightweight open source framework for layered Java SE/EE applications, IoC (Inverse Of Control) and AOP (aspect oriented programming: Aspect Oriented Programming) as the kernel, it provides many enterprise application technologies such as presentation layer spring MVC, persistence layer Spring ...
Added by Noumes on Sun, 02 Jan 2022 13:55:52 +0200
Spring source code parsing -- spring web Filter parsing
brief introduction
In the last few articles, we explored the code related to request processing. This article begins to explore some operation codes before request processing, such as Filter. This article explores Filter initialization, request processing and other related codes.
preface
First, simply define the relevant test code:
Startup ...
Added by jsimmons on Sun, 02 Jan 2022 12:31:55 +0200
SpringBoot default log configuration output level
Springboot default configuration
Let's demonstrate it in the test class
package com.staticzz.springboot_logging;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringR ...
Added by mitchell on Sun, 02 Jan 2022 05:01:13 +0200
Using SSM framework to realize a simple login function -- 2021-08-01 SSM framework learning
1, First look at the renderings:
After clicking login, if the password is correct, it will directly jump to the success interface I First create a user table in the database Table name: user Save several users: The preparation is almost done. Start writing code Open the project of building a successful SSM environment in our previous artic ...
Added by Labbat on Sat, 01 Jan 2022 19:38:41 +0200
The little-known details in the IoC container of Spring's core principles
This article is excerpted from Spring 5 core principles
The Spring IoC container also has some advanced features, such as pre initializing beans using the lazy init attribute, generating or modifying Bean objects using factorybeans, and managing Bean declaration cycle events using the BeanPostProcessor post processor during Bean initialization ...
Added by tippy_102 on Sat, 01 Jan 2022 17:20:58 +0200
Understanding of Spring control inversion - understanding of IOC
Let's give a small example to illustrate what is control inversion IOC?
In the initial stage, we write code as follows:
Create a new UserDao and its implementation class
public interface UserDao {
void save();
}
public class UserDaoImpl implements UserDao {
public void save() {
System.out.println("UserDao.save");
}
}
...
Added by bob2588 on Sat, 01 Jan 2022 17:05:07 +0200