Using spring MVC to upload files
Original address: http://www.yiidian.com/springmvc/file-upload.html
File upload is a common requirement in the presentation layer. In Spring MVC, the common file upload tool of Apache is used to complete file upload and encapsulate it, making it more convenient for developers to use. Let's see how to develop it?
1 import common file upload pack ...
Posted by enoyhs on Wed, 04 Mar 2020 05:04:44 -0800
Spring source code analysis -- instantiation of Bean
3, Bean instantiation
public void refresh() throws BeansException, IllegalStateException {
synchronized (this.startupShutdownMonitor) {
// Prepare this context for refreshing.
prepareRefresh();
// Tell the subclass to refresh the internal bean factory.
ConfigurableListableBeanFac ...
Posted by StateGuy on Wed, 04 Mar 2020 03:31:30 -0800
Spring boot integrates MyBatis to add, delete, modify and check the complete version of case (with source code)
1. introduction
Spring Boot is a framework to simplify spring development. It is used to monitor the spring application development. The Convention is larger than the configuration. just run can create an independent, product level application.
When we use Spring boot, we only need to configure the corresponding Spring boot to use all the Sprin ...
Posted by Shibbey on Wed, 04 Mar 2020 02:41:19 -0800
How to deal with global exception in microservice
In microservices, global exception handling is an objective problem that must be solved. If these exceptions are not handled well, some unfriendly error messages will be displayed to users, such as null pointer exceptions, SQL execution errors and other exceptions, which are certainly incomprehensible t ...
Posted by dniry on Wed, 04 Mar 2020 02:35:09 -0800
Spring boot integration zookeeper and dubbo@Reference null pointer exception
Problem Description: as a rookie, in the process of learning spring boot, I want to watch the teacher's video once and knock myself to impress myself a little bit. As a result, the problem comes. @The Reference of the Reference annotation reported a null pointer exception. After more than two hours of t ...
Posted by webdzine on Wed, 04 Mar 2020 01:55:17 -0800
Spring source code analysis -- Bean registration
There are two types of beans in Spring, one is a normal bean, the other is a factory bean:
Bean factory is a factory used to manage beans. All beans are managed by BeanFactory (i.e. IOC container)
FactoryBean is a factory Bean that can produce or decorate objects. Its implementation is similar to the ...
Posted by ManicMax on Wed, 04 Mar 2020 01:41:39 -0800
Follow me to learn the spring cloud Tutorial Part 6: distributed configuration center (Spring Cloud Config) - b2b2c applet E-commerce
In the distributed system, due to the huge number of services, in order to facilitate the unified management and real-time update of service configuration files, the distributed configuration center components are required. In Spring Cloud, there is a distributed configuration center component, spring c ...
Posted by mike_y on Tue, 03 Mar 2020 21:08:36 -0800
Simple Factory-Factory Method for Design Mode Theme-Abstract Factory-Static Agent-Dynamic Agent
1. Factory Mode
1.1 What is factory mode
Separation of creator and caller is implemented, factory mode is divided into simple factory, factory method, abstract factory mode
1.2 Factory Mode Benefits
Factory mode is one of our most common instantiated object modes, replacing the new operation with ...
Posted by patrickm on Tue, 03 Mar 2020 18:48:06 -0800
SPI application and principle of dubbo
dubbo
SPI(Service Provider Interface)
In essence, the fully qualified name of the interface implementation class is configured in the file, and the service loader reads the configuration file and loads the implementation class. This allows you to dynamically replace the implementation class for the interface at run time.
SPI is used to de ...
Posted by Thora_Fan on Mon, 02 Mar 2020 23:42:33 -0800
Notes on Java 8 - Chapter 23 notes
It's all notes of personal learning process, not summary, no reference value, but this book is great
Basic grammar
Definition annotation
Annotations usually contain elements that represent specific values. These values can be used by programs or tools when analyzing and processing annotations. Th ...
Posted by guoxin on Mon, 02 Mar 2020 20:30:38 -0800