Dynamic interceptor management method based on struts2 interceptor
A management method and interceptor technology, which is applied in the field of dynamic interceptor management based on struts2 interceptor, to achieve the effect of improving development efficiency
Active Publication Date: 2017-04-26
G CLOUD TECH
View PDF5 Cites 3 Cited by
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
[0003] One is that every time an interceptor is added, the configuration file needs to be re-modified to add the corresponding interceptor configuration 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 moreImage
Smart Image Click on the blue labels to locate them in the text.
Smart ImageViewing Examples
Examples
Experimental program
Comparison scheme
Effect test
Embodiment Construction
[0029] Such as figure 1 As shown, the present invention first starts the web application, loads the interceptor implementation class in the code, and then the implementation class performs work:
[0030] Create a custom interceptor
[0031]
[0032]
[0033] Add a custom interceptor template
[0034]
[0035]
[0036] When the web application starts, scan the specific package and add the code to the memory
[0037]
[0038]
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
Login to View More
Abstract
The invention relates to the field of web projects, in particular a dynamic interceptor management method based on a struts2 interceptor. The method comprises the following steps; first creating a struts2 interceptor for executing a self-defined interceptor group, wherein the interceptor group is a self-defined abstract class with multiple attributes, and comprises the priority and the interception url; and then creating a loader module for dynamically loading a web project, and dynamically updating the interceptor in the interceptor group online. An interception module in the web project can be upgraded online through the self-defined dynamic interceptor, the web projection security and the service stability are provided; the expansion is convenient, and the development efficiency of a developer is improved.
Description
Technical field [0001] The invention relates to the field of web applications, in particular to a dynamic interceptor management method based on a struts2 interceptor. Background technique [0002] In a web application, some common operations need to be performed on the interface, such as parameter verification, permission control, and so on. Generally, the unified processing is performed by creating a new interceptor. There are still some problems encountered in the use of the interceptor: [0003] One is that every time an interceptor is added, the configuration file needs to be re-modified and the corresponding interceptor configuration information is added. [0004] Second, the web application needs to be restarted after the interceptor is added, so that the interceptor can perform the interception work normally. Summary of the invention [0005] The technical problem solved by the present invention is to provide a dynamic interceptor management method based on the struts2 inte...
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
Login to View More
IPC IPC(8): G06F17/30G06F9/445
CPCG06F9/44505G06F16/958
Inventor 钟健波杨松季统凯
Owner G CLOUD TECH
Who we serve
- R&D Engineer
- R&D Manager
- IP Professional
Why Patsnap Eureka
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com