Spring MVC self study notes
The address of the document is: https://space.bilibili.com/95256449?from=search&seid=2878972308904962662
Spring-MVC
Official documents: https://docs.spring.io/spring-framework/docs/current/reference/html/web.html#spring-web
What is spring MVC
1.1. What is MVC
MVC is the abbreviation of model, view and controller. It is a software desig ...
Added by billabong0202 on Mon, 31 Jan 2022 20:28:01 +0200
Spring MVC notes - and SSM integration ideas
SpringMVC
Translation of Chinese documents: https://github.com/DocsHome/spring-docs/blob/master/pages/web/overview.md
Search GitHub for spring docs
Introduction to Spring MVC
Spring MVC is a part of spring framework. It is a lightweight web framework based on Java implementation.
The core of spring MVC
The core of learning Spring MV ...
Added by Forever_xxl on Sat, 29 Jan 2022 09:01:56 +0200
Spring MVC framework learning
Spring MVC framework learning
1. Basic theory
1. Three tier architecture
The development of server-side programs is generally based on two forms: a C/S architecture program and a B/S architecture programThe program of B/S architecture is basically developed using Java language, and the B/S architecture is divided into three layersThree tier ...
Added by wmhop on Thu, 27 Jan 2022 08:24:44 +0200
SpringMVC learning notes 04 ------- result jump
1. Request forwarding and request redirection
Request forwarding
One request
The address bar will not change
The code after jump will not be executed
Can only be forwarded in the current project
Can pass the information of request scope
request redirections
Two requests
The address bar will change
The code after the jump will be execute ...
Added by busyguy78 on Wed, 26 Jan 2022 11:53:01 +0200
SpringMvc (exception handling)
1. Built in exception handling parser
Open dispatcherservlet properties File, where you can see some built-in APIs of SpringMvc. After this key is our exception handling parser. There are three default exception handling classes, as shown in the following example:
org.springframework.web.servlet.HandlerExceptionResolver=org.springfra ...
Added by tabatsoy on Wed, 26 Jan 2022 07:59:33 +0200
Detailed explanation of the working principle of spring MVC
Detailed explanation of the working principle of spring MVC
Before learning, let's take two pictures of Shentu Zhenlou
What is MVC
In the classic MVC mode, m refers to the business model, V refers to the user interface, and C is the controller. The purpose of using MVC is to realize M and V code Separation, so that the same program can u ...
Added by JJohnsenDK on Tue, 25 Jan 2022 15:31:04 +0200
Spring MVC learning notes
1,MVC
1.1 what is MVC
MVC is the abbreviation of model, view and controller. It is a software design specification.It is a method to organize code by separating business logic, data and display.The main function of MVC is to reduce the two-way coupling between view and business logic.MVC is not a design pattern, MVC is an architecture pat ...
Added by synted on Sun, 23 Jan 2022 20:28:29 +0200
Detailed explanation of Druid configuration parameters
pom introduction
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.18</version>
</dependency>
Initialize connection
In the configuration file of druid connecting to the database, there should be "init method =" init & ...
Added by r-it on Sun, 23 Jan 2022 12:51:13 +0200
Common determination methods of parameters
Main code of parameter resolution:
protected Object[] getMethodArgumentValues(NativeWebRequest request, @Nullable ModelAndViewContainer mavContainer, Object... providedArgs) throws Exception {
MethodParameter[] parameters = this.getMethodParameters();
if (ObjectUtils.isEmpty(parameters)) {
return EMPTY_ARGS;
...
Added by sneakyimp on Sat, 22 Jan 2022 23:40:31 +0200
Spring MVC learning notes [part5] local file upload
Spring MVC learning notes Part5
1. Principle of file upload
This section will review the traditional file upload methods of Java Web and learn the more convenient file upload components provided by spring MVC. First, let's review some pre knowledge of file upload.
The enctype value of the form must be: multipart / form data (the default valu ...
Added by Markto on Sat, 22 Jan 2022 20:47:01 +0200