session expired, intercept ajax request and jump to login page
1. Method 1: 1.1 use filter and ajax setup to intercept ajax and jump to the login page
1 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
2 throws IOException, ServletException {
3
4 HttpServletResponse hresponse = (HttpServletResponse)response;
5 HttpServletRequest hr ...
Posted by steelaz on Fri, 03 Apr 2020 21:40:17 -0700
Strange events encountered by C tag traversing map
[data source]
map stores common basic data types, such as String, key,value
Map<Integer, String> commonMap = new HashMap<Integer, String>();
commonMap.put(1,"aaa");
commonMap.put(2,"bbb");
commonMap.put(3,"ccc");
The data type of map in the second, where value is an object
For example:
Map<Integer, Stud ...
Posted by mysoogal on Fri, 03 Apr 2020 13:01:16 -0700
maven multi environment configuration (multi environment configuration, development environment, test environment and development environment are packaged separately)
1. Put the public configuration file in resources, the development environment, production environment and test environment in resources.dev, resources.test and resources.prod respectively
2. Set in pom.xml
<build>
<resources>
<resource>
<!--Put the corresponding unique resources(dev,tes ...
Posted by ambivalent on Fri, 03 Apr 2020 07:13:34 -0700
Spring MVC environment construction
Spring MVC execution principle
When the page sends the request, the controller finds the corresponding mapping (method) according to the request. After the function is executed, the controller jumps to the corresponding page and presents the processing result after the view parser processing according to the returned result.
...
Posted by andybrooke on Wed, 01 Apr 2020 20:24:39 -0700
java refactoring ActionServlet to reduce the configuration item code of Web.xml
Two fatal disadvantages of Servlet (interview questions):
There are many configuration items in web.xml file: due to the increase of Servlet, a large number of Servlet configurations will be generated
Servlet has container dependency reason: HttpServletRequest and HttpServletResponse objects are created by the Web container when a servlet proc ...
Posted by Paavero on Wed, 01 Apr 2020 08:34:57 -0700
Timer-Case Analysis in JS
Making js timer
In javascritp, there are two special functions for timers:
1. Countdown timer: timename = setTimeout ("function (;"), delaytime);
2. Cycle timer: timename=setInterval ("function();", "delaytime);
The first parameter,'function()', is the action to be performed when the timer triggers. It can be a funct ...
Posted by Akenatehm on Wed, 25 Mar 2020 01:06:50 -0700
Qile Background Management System--Store Management Module
Preface: Before that, we explained ----- Integration and Testing of Three Frameworks of this Project (Spring+SpringMVC+Mybatis) , we have a certain understanding of the integration of the three major frameworks today, so today we are talking about the implementation of the store management module, mainly explaining the front and back-end two mo ...
Posted by Justin98TransAm on Fri, 20 Mar 2020 17:52:40 -0700
Java single application - common framework - 05. Integrated instance (IOT admin)
Original address: http://www.work100.net/training/monolithic-frameworks-example.htmlMore tutorials: Beam cloud - free course
Comprehensive example
Serial number
Chapter in text
video
1
Summary
-
2
Create project
-
3
Use AdminLTE template
-
4
Create landing page
-
5
Login function implementation
-
6
Enhance user experience
-
7
...
Posted by funkyres on Fri, 20 Mar 2020 04:18:12 -0700
Qt learning custom control 1: draw a simple to use dashboard
Qt learning custom control 1: draw a simple to use dashboard
Opening words
Method 1: load SVG (if the SVG file cannot be uploaded, the screenshot will be displayed)
Dial screenshots
Pointer screenshots
widget.h:
widget.cpp:
Effect map 1:
Method 2: draw directly with code
qmgauge.h:
qmgauge.cpp:
q ...
Posted by mkoga on Tue, 17 Mar 2020 00:20:08 -0700
Main configuration and application of spring MVC
SpringMVC
The concept of MVC
Model1 mode
Model 1: the combination of JSP page and JavaBean does not use the java Servlet form to write the front-end and back-end interactions, almost all of which are in the charge of JSP
Model2 mode
M: The Model model (JavaBean) is responsible for the data l ...
Posted by raydenl on Mon, 16 Mar 2020 22:18:19 -0700