Abnormity capture processing method based on SSM system

A processing method and exception handling technology, applied in the direction of electrical digital data processing, instruments, calculations, etc., can solve problems such as redundant exception handling codes, increased costs, docking errors, etc., to reduce business redundant codes, shorten development cycles, The effect of improving operation and maintenance costs

Pending Publication Date: 2021-06-22
GUANGZHOU FAISCO INFORMATON TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These methods will cause a large number of redundant and repeated exception handling codes, making developers need to pay attention to logic other than business. In addition, connecting with the front-end error information also increases the cost

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 capture processing method based on SSM system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention.

[0020] refer to figure 1 , an exception capture processing method based on an SSM system, comprising the following steps: adding exception capture logic, adding custom exception capture logic in aop; executing a controller method; uniformly intercepting the controller method in aop, and judging the exception type , and then perform different logic processing respectively, and then throw an exception; exception handling; if an exception is caught, return a custom prompt to the front end according to the exception type, aop aspect technology, aspect-oriented programming, used to isolate and decouple various concerns, Enable non-intrusive development.

[0021] In the p...

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 discloses an exception capture processing method based on an SSM system. The exception capture processing method comprises the following steps of adding exception capture logic, adding self-defined exception capture logic in an aop, executing a controller method, uniformly intercepting the controller method in the aop, judging exception types through a verification tool, throwing exceptions and processing the exceptions. And if the exception is captured, returning a self-defined prompt to the front end according to the exception type. According to the invention, section-oriented programming is used for isolating and decoupling each focus. And non-intrusive development is realized, service redundant codes in the system are effectively reduced, and developers can be more focused on service logic.

Description

technical field [0001] The invention relates to the technical field of software technology, in particular to an SSM system-based exception capture and processing method. Background technique [0002] AOP is the abbreviation of Aspect Oriented Programming, which means: aspect-oriented programming, which is a technology to achieve unified maintenance of program functions through pre-compilation and runtime dynamic proxy. AOP is a continuation of OOP, a hot spot in software development, an important content in the Spring framework, and a derivative paradigm of functional programming. AOP can be used to isolate various parts of business logic, thereby reducing the coupling degree between various parts of business logic, improving the reusability of programs, and improving the efficiency of development at the same time. [0003] At present, there are two common ways to catch and handle exceptions. One is to simply throw the exception to the front end, and the other is to handle ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 邹汉健
Owner GUANGZHOU FAISCO INFORMATON TECH
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
Try Eureka
PatSnap group products