Source code decryption of spring MVC startup process
As we know, spring MVC is finally deployed through Tomcat. When the application is deployed in the Servlet, the main steps are (reference from http://download.oracle.com/otn-pub/jcp/Servlet-3.0-fr-eval-oth-jspec/Servlet-3_-final-spec.pdf):
When a web application is deployed into a container, the follow ...
Posted by imurkid on Mon, 20 Jan 2020 05:11:51 -0800
13. Using Spring container under Spring web project
QQ group: Java data sharing group 59174518
Suppose we create the ApplicationContext container according to the method we learned
@Test
public void fun1() {
// 1. First, create the container,
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("ApplicationContext.xml");
// ...
Posted by mrinfin1ty on Thu, 26 Dec 2019 09:29:19 -0800
Front and Back End Separation of Java Projects - Spring MVC Configuration of html View Parser
Links to the original text: https://blog.csdn.net/qq_38355456/article/details/73603602
Based on the separation of the front and rear parts of the project, it does not use the backend template engine, so what is the end of.jsp,.vm templat ...
Posted by fantic on Tue, 08 Oct 2019 23:54:27 -0700
[190730 per day] filter
introduce
The filter comes from an interface in the Servlet specification
The filter interface can intercept the request before it reaches the target resource file, so that it can judge whether the request is legitimate or enhance the interception request.
The filter interface implementation class needs to be implemented by the developer
Fil ...
Posted by Rado001 on Tue, 30 Jul 2019 21:02:46 -0700
Brief introduction to the basic concept of Servlet
Basic concepts of Servlet
The Concept of Servlet
http protocol acts on client-server. Request is sent by the client, and Response is sent to the client after the server receives the data. This is the request-Response mode. But the request Response must be handled by a mediation, which is a server-side applet called servlet.
Development an ...
Posted by misschristina95 on Sat, 04 May 2019 00:20:37 -0700
Using Intellij Idea to Customize MVC Framework
- Restore content to start
Today, I learned how to customize a simple MVC framework. First of all, we need to know what MVC framework is!
MVC Framework: The full name of MVC is Model View Controller, which is the abbreviation of Model-View-Controller. It is a model of software design. It organizes code with a method of separating business log ...
Posted by ngubie on Sat, 20 Apr 2019 16:21:33 -0700
JAVASE Foundation - day15 (List Collection of Collections)
15.01 Set Framework (Overview and Use of Object Arrays)
A: Case demonstration Requirement: I have five students. Please store the information of these five students in the array and traverse the array to get the information of each student.
Student[] arr = new Student[5]; //Storing Student Objects
arr[0] = new Student("Zhang ...
Posted by eliezer on Sat, 23 Mar 2019 06:15:54 -0700
Java chooses the corresponding method in servlet through reflection mechanism
This method is used to select the corresponding method in the servlet by the corresponding name in Javaee development.
Note: The main code is as follows
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
/**
* This is the problem of setting up browser encoding
...
Posted by benracer on Wed, 20 Mar 2019 09:27:28 -0700
Java concurrent operation list collection causes java. util. Concurrent ModificationException to use iterators
Requirement: I have a collection, as follows, I want to determine whether there is a "world" element in it, if there is, I add a "javaee" element, please write code implementation.
The code is as follows:
public class Test {
public static void main(String[] args) {
List&l ...
Posted by Peter on Wed, 06 Feb 2019 01:51:16 -0800
13.8 - Full Stack Java Notes: Fighting Aircraft Game Practical Project | Explode|MyGameFrame|Plane
Realization of Explosion EffectWhen an airplane is hit by an artillery shell, it needs an explosive effect to make our picture more exciting. Explosive effects are also common in game development.We define the Exlode class to represent the information of the explosion. The difference between the explosion class and the ordinary class is that it ...
Posted by arpowers on Fri, 14 Dec 2018 04:24:03 -0800