Spring MVC ---- requestmapping

1. overview 1.1 spring MVC uses @ RequestMapping annotation to specify which URL requests can be processed for the controller; 1.2 @ RequestMapping can be marked at the class definition and method definition of the controller; 1.2.1 mark at class definition: provide preliminary request mapping information. Relative to the root directory of WEB ...

Added by jbulaswad on Tue, 24 Dec 2019 00:32:25 +0200

JSTL 1.2 jsp uses jstl to import packages to solve various errors

Problems encountered in using JSTL 1.2 JSP code <%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030" isELIgnored="true"%> <%-- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> --%> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> ...

Added by dwu on Mon, 23 Dec 2019 16:42:11 +0200

Spring MVC exception handler

brief introduction Spring MVC exception information in the process of processing the request is handled by the exception handler. The custom exception handler can implement the exception handling logic of a system. Abnormal understanding Exceptions include compile time and run-time exceptions, where compile time exceptions are also called expec ...

Added by Ton Wibier on Wed, 11 Dec 2019 11:38:02 +0200

Servlet Filter

Characteristic 1) Filter is dependent on Servlet container, which is a part of Servlet specification. Three interface classes are defined in Servlet API: Filter, filterchain and filterconfig. 2) the basic function is to intercept the process of calling Servlet, so as to realize some special functions before and after the response processing of ...

Added by chrispols on Sun, 08 Dec 2019 21:27:23 +0200

idea to create an ssm project based on maven

In this paper, we use el expression to query and display the background data in jsp page. 1. Preconditions Complete paging to get user information api 2. Technical selection Front end paging plug-in jquery paginator Back end paging plug-in pagehelper 3. Import dependent js and css bootstrap.min.3.3.5.css jquery-1.11. ...

Added by manichean on Sun, 08 Dec 2019 20:38:16 +0200

Java implementation login verification code

Login verification code Servlet /* Get the data from the request and change the value of the session to String type Destroy to prevent the verification code from not refreshing after returning. The re verification is successful Determine whether the verification code is the same (ignore case) Same: create user object to call the method of serv ...

Added by Angus on Thu, 05 Dec 2019 06:00:50 +0200

Spring MVC annotation development

ps: it's relatively simple. It's used to lay the foundation for us to use springboot I. project construction (1) guide packet <!-- servlet --> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>4.0.0</version> <scope>provided ...

Added by zyntax on Wed, 20 Nov 2019 16:41:11 +0200

Shy, there are so many positions for Java string stitching

Second Brother, when I was a sophomore this year, I read a passage in the Alibaba Java Development Manual that you shared that said, "In a loop, it is better to use StringBuilder's append method for stitching strings than the + operator."Why on earth, I always use the'+'operator!Can I write an article to analyze when my brother is fr ...

Added by jacomus on Thu, 14 Nov 2019 00:43:09 +0200

Struts upload picture

Struts upload picture Today, I have finished the image upload and page display of the last blog. File upload scheme: Upload to tomcat server Upload to the specified file directory, add the mapping relationship between the server and the real directory, so as to decouple the relationship between the u ...

Added by zxsalmanxz on Wed, 30 Oct 2019 17:37:21 +0200

Servlet processing (jQuery) Ajax requests

1. jQuery jQuery is a JavaScript function library, which greatly simplifies JavaScript programming and is easy to learn. jQuery is the most popular open source js framework, and provides a lot of extensions. 2. Ajax Ajax(Asynchronous JavaScript and XML) is a kind of web development technology to create interactive web applications. It is not ...

Added by Repgahroll on Tue, 29 Oct 2019 08:44:54 +0200