Spring MVC view and how to share data in domain objects
Review the native Servlet to get the request parameters
Get through Servlet API
Take HttpServletRequest as the formal parameter of the controller method. At this time, the parameter of HttpServletRequest type represents the object encapsulating the request message of the current request.
An HTTP request message consists of four p ...
Posted by mjohnson025 on Sun, 23 Jan 2022 08:14:36 +0100
MVC based blog system [Java Web project]
Project description
1, Abstract
Blog system is a platform for blog posts developed using java web technology and communication between different users.
Blog system is a simple web platform for blog communication, which can meet users' simple blog management needs and simple operation. It mainly includes the following aspects:
Login registra ...
Posted by inSaneELF on Wed, 19 Jan 2022 16:11:23 +0100
refresh method source code analysis
Post processor
It is also a Bean that needs to be registered in the container
◆ the methods in it will be called by the container at a specific time ◆ the implementation extends the Bean without changing the container or the core logic of the Bean
◆ package the Bean, affect its behavior, modify the content of the Bean, etc
Type of PostProce ...
Posted by nielsg on Tue, 18 Jan 2022 16:35:59 +0100
Spring MVC crazy God complete notes
Crazy God says spring MVC video link: Station B video The link of the official account of the gods. official account
1. What is spring MVC
1.1 review MVC
1.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 displa ...
Posted by andrewtayloruk on Mon, 10 Jan 2022 20:58:55 +0100
Javaweb--JSP development model (including practical projects)
Javaweb - JSP development model (including actual projects)
System development model, that is, system development architecture, is a large structure for integrating application systems. The common system structures are three-tier architecture and MVC. The two architectures are both related and different. The use of these two architectures i ...
Posted by makeITfunctional on Sat, 08 Jan 2022 16:47:05 +0100
Java Web JSP development model (14)
1, Overview The development model of JSP is JSP Model. In order to use JSP technology more conveniently in web development, SUN company provides two development models for JSP technology: JSP Model1 and JSP Model2. 2, Characteristics JSP model 1: simple and portable, suitable for the rapid development of small Web projects. JSP model 2: provide ...
Posted by ejwf on Sat, 08 Jan 2022 12:43:13 +0100
springboot-madness-08-(MVC automatic configuration principle)
8. SpringBoot: MVC auto configuration principle
12.1. Official website reading
Before writing the project, we also need to know what configuration SpringBoot has made for our spring MVC, including how to extend and customize.
Only by making these clear can we use them more easily in the future. Way 1: source code analysis, way 2: official do ...
Posted by Diceman on Fri, 07 Jan 2022 21:44:02 +0100
spring mvc controller requestmapping parameter binding annotation rules and default rules
Binding: assign the information in the request to the method parameters according to the principle of name matching.
1. Request path variable @ PathVariable
Get the parameters from the request URI, excluding the query string, and? After the number.
@RestController
@RequestMapping("/user")
public class UserAction {
@GetMapping("/{id}")
...
Posted by PaTTeR on Fri, 07 Jan 2022 02:38:24 +0100
Call of aspect oriented programming in Spring
Knowledge point set about AOP
Concept: AOP is the abbreviation of Aspect Oriented Programming, which means Aspect Oriented Programming
Aspect oriented programming: define and encapsulate the extended method in the aspect. There is no need to modify the source code to extend the method, and there may be many aspects
Function: it can isolate e ...
Posted by adksga on Thu, 06 Jan 2022 06:07:51 +0100
The enabler of the Spring MVC interceptor (Inteceptor)
1. Monitor, filter and interceptor pairs
(1) Servlet: Processing Request requests and Response responses
(2) Filter: Filter requests before Servlet if configured to /* access all resources (servlet, js/css static resources, etc.) filter processing
(3) Monitor (
Listener
): Implemented
javax.servlet.ServletContextListener
Connected ser ...
Posted by jdlev on Wed, 05 Jan 2022 20:24:41 +0100