Spring MVC View Resolver
When we use Spring MVC, we must know that for security reasons, our JSP files will be placed under WEB-INF.
But we don't have direct access to resources in / WEB-INF / directory outside, do we?
Access can only be carried out through internal server in the form of forwarding, so the bottom of the Internal ResourceViewResolver can help us solve ...
Added by harman on Fri, 13 Sep 2019 14:45:00 +0300
Chapter 9, Interceptor exception handling Spring MVC process (emphasis)
Interceptor== (emphasis)==
1. Overview of custom interceptors
Spring MVC can also use interceptors to intercept requests. Users can customize interceptors to achieve specific functions. Customized interceptors can implement Handler Interceptor in ...
Added by Lord Brar on Tue, 10 Sep 2019 14:35:28 +0300
Front and Back End Reference Problems and Solutions in springboot
About org.springframework.web.HttpMediaTypeNotSupportedException: Content type'application/x-www-form-urlencoded;charset=UTF-8'not supported and Could not read document: Unrecognized token': was expecting ('true','false'or'null') exception resoluti ...
Added by Tjorriemorrie on Fri, 30 Aug 2019 05:46:56 +0300
Request Request Request Basic Knowledge
The actual behavior of the Tomcat server:
Because: Enter in the browser's address bar: localhost:8080/ProjectName / resource path
Where the resource path:
It's the resource path in @WebServlet("/demo3")
1. Through this path, the class poi ...
Added by enlight on Wed, 28 Aug 2019 06:39:21 +0300
Thymeleaf's Initial Knowledge and Use
##Template Engine
In addition to JSP, SpringBoot also provides many other template engines, such as freemarker, thymeleaf, and so on.
JSP is officially not recommended for SpringBoot, and Thymeleaf is the view layer technology recommended for Sprin ...
Added by iShaun on Tue, 27 Aug 2019 04:52:32 +0300
Talking about the java filter Filter <the most understandable explanation>
I. Brief Introduction
Filter in Servlet is a server-side program that implements javax.servlet.Filter interface. Its main purpose is to filter character encoding and make some business logic judgments, such as access to pages. Its working principle is that as long as you configure the web.xml file to intercept client requests, it will help you ...
Added by blckspder on Fri, 23 Aug 2019 10:54:12 +0300
User Management Based on Servlet and JSP
Recently, I learned the javaweb link and implemented a user management system following the teacher's teaching steps. No more bb, just start.
First step: database design
For the time being, the system only uses one user table, which is equivale ...
Added by David03 on Wed, 14 Aug 2019 06:22:21 +0300
jsp built-in object learning
request object
request object is mainly used to receive data transmitted from client to server through HTTP protocol link.
The main method of request is to deal with the parameters and options in the request submitted by the client browser.
Partial methods:
object getAttribute(String name) //Returns ...
Added by Perry Mason on Sat, 10 Aug 2019 13:36:11 +0300
Spring MVC: A Common Way for Controller to Receive Request Parameters
1. Receiving request parameters through entity bean s
For get and post submission requests, it is important to note that the bean's attribute name must be the same as the request parameter name.
Example: We submit a form on register.jsp page. There are three submissions: uname, upass, urepass, that ...
Added by radi8 on Tue, 30 Jul 2019 09:49:39 +0300
Spring MVC -- exception handling
Spring MVC provides us with a unified exception handling mechanism in the following four ways. It's important to note that if we want to use a unified exception handling mechanism, then we don't have to try the exception that needs unified processing. catch... Instead, it is handled uniformly by excepti ...
Added by DragonHighLord on Tue, 23 Jul 2019 12:31:34 +0300