Request Response\File UploadExceptionInterceptor for SpringMVC

SpringMVC Summary Spring MVC is an excellent Web framework based on MVC design concept provided by Spring for presentation layer, and it is one of the most mainstream MVC frameworks at present.Spring MVC makes POJO the controller for processing requests through a set of MVC annotations without imple ...

Posted by velanzia on Sat, 13 Jun 2020 04:12:07 +0200

Java implementation of computer composition principle

1 purpose of course design This course is designed to deepen students' basic knowledge of the course of computer composition principle, further understand some algorithms of computer composition principle, and carry out specific implementation, so as to improve the comprehensive application ability of a ...

Posted by Easter Bunny on Mon, 08 Jun 2020 05:19:43 +0200

Review of SSM environment construction

Editor: IDEA System: Win 10 Package management: maven SSM: SpringMvc,Spring,MyBatis 1, Build father son project of maven Establish the parent project review of ssm first_ ssm Then the domain, dao, service and utils sub modules are established respectively, and finally the web module built with maven's webapp skeleton is created Remember ...

Posted by KeitaroHimura on Sun, 24 May 2020 18:09:57 +0200

java websocket message push

1. maven introduces dependency <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.3</version> </dependency> <dependency> <groupId>javax.websocket</groupId> <artifactId>javax.websocket-api</art ...

Posted by studio805 on Tue, 05 May 2020 15:34:33 +0200

Making and verifying the verification code of Jsp+Servlet (1)

Method 1: BufferedImage+Graphics to make verification code 1. Make JSP page (as shown in the figure)         The code is as follows: 1 <body> 2 <form action="<%=request.getContextPath()%>/servlet/LoginServlet" method="get" /> 3 Verification Code:<input type="text" name="checkcode"/> 4 <img alt="Verification Cod ...

Posted by ilikephp on Sat, 02 May 2020 20:35:42 +0200

Configuration of spring MVC in spring boot

Using spring MVC in spring boot To use spring MVC in spring boot, you only need to introduce spring boot starter web (provided that the pom file of the project is inherited from spring boot starter parent): <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring- ...

Posted by Firestorm ZERO on Sun, 05 Apr 2020 03:11:10 +0200

Simple implementation of listener in java web

Today, I relearned the basic listener technology of java web, and used sessionListener to simply count the number of people online (one bug is that when the web page is closed, the session will not be closed and still exists, unless the server is closed). The code is as follows (the front-end web page code will not be displayed): LoginServlet.j ...

Posted by lukegw on Thu, 02 Apr 2020 16:08:24 +0200

openfire send message plug-in (description and source code)

openfire send message plug-in (description and source code) Implementation function: Send messages to users directly if they are online, and save them as offline messages when they are not online Send a message to a group. If it is online, it will be sent directly. If it is not online, it will be saved as an offline ...

Posted by FredFredrickson2 on Tue, 31 Mar 2020 15:21:42 +0200

[springboot] render web page

Spring Boot provides the following template engines for default configuration: Thymeleaf FreeMarker Velocity Groovy Mustache Note: avoid using JSP, JSP can't realize many features of Spring Boot; Integrate jsp Tips: 1. Packing method war 2. To import a pom file: <!-- Introduce freeMarker Dependency package. - ...

Posted by sureshp on Mon, 30 Mar 2020 22:53:41 +0200

2020, still need to learn JSP?

Preface 2020, still need to learn JSP? I believe that the students who are still in university will have this question. In fact, when I was 18 years old, I had already seen a similar question: "should JSP still learn?". In the past 18 years, I have published several JSP articles, and many developers have commented on "isn't t ...

Posted by Ricklord on Mon, 23 Mar 2020 07:58:48 +0100