Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Abnormity processing method and device based on Spring MVC, computer device and storage medium

An exception handling and exception technology, applied in the computer field, can solve problems such as DispatcherServlet interface class configuration confusion

Pending Publication Date: 2019-07-30
PING AN TECH (SHENZHEN) CO LTD
View PDF0 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the existing configuration of the DispatcherServlet interface class is relatively confusing, causing the pre-controller to only handle simple exception information

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Abnormity processing method and device based on Spring MVC, computer device and storage medium
  • Abnormity processing method and device based on Spring MVC, computer device and storage medium
  • Abnormity processing method and device based on Spring MVC, computer device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in further detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0061] The exception handling method based on Spring MVC provided by this application can be applied to such as figure 1 shown in the application environment. Wherein, the terminal 102 communicates with the web server 104 through a network. The terminal 102 obtains the resource request triggered by the user in the browser, and sends the resource request to the web server 104 through the network, and the web server 104 obtains the resource request sent by the client through the front controller, and according to the resource identifier in the resource request Determine t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to an abnormity processing method and device based on Spring MVC, a computer device and a storage medium. The method relates to the technical field of Web application development, and comprises the following steps: obtaining a resource request sent by a client through a front-end controller; determining a corresponding target processor object according to the resource identifier in the resource request, and processing the resource request through the target processor object to obtain a model view object; calling a callback function of the interceptor interface class to verify the model view object; when the callback function returns the abnormal type code, calling an abnormal processing object to process the abnormal type code to obtain a new model view object; generating an abnormal page view object according to the new model view object through a front-end controller; wherein the abnormal page view object is used for enabling the client to display a page comprising abnormal information corresponding to the abnormal type code. By adopting the method, various abnormal information occurring when the webpage server processes the resource request of a user can beprocessed in a unified manner.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a Spring MVC-based exception handling method, device, computer equipment and storage medium. Background technique [0002] The Spring MVC framework is designed around a DispatcherServlet interface class. This interface class implements the basic functions of the front controller, distributes the received data requests to each handler object (Handler), and supports configurable handler mapping, View rendering, localization. The DispatcherServlet interface class is realized through various configuration files, and the basic functions of the front controller can be realized by defining various implementation classes in these configuration files. [0003] However, the existing configuration of the DispatcherServlet interface class is relatively confusing, resulting in the pre-controller can only handle simple exception information. How to use the Spring MVC framework to...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/448
CPCG06F9/449
Inventor 许永夫
Owner PING AN TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products