Spring-based MVC mode optimization system

A mode and design mode technology, applied in the direction of program control devices, etc., can solve the problems of lack of permission setting, no data layer, and no comprehensive support scheme provided by view technology

Inactive Publication Date: 2015-01-07
INSPUR QILU SOFTWARE IND
View PDF3 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The main disadvantage of Struts is the lack of perfect permission setting, and no data layer support, so its use must completely depend on the specific framework class
Moreover, in practical applications, Struts cannot use domain objects as F

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Aiming at the shortcomings of over-reliance on Servlet API and unfavorable unit testing, the decoupling of Servlet is realized by encapsulating business logic processing classes and interfaces.

[0029] Specific steps are as follows:

[0030] ①Create the controller interface OptimizingContext, and declare the method of obtaining HttpServletRequest and HttpServletResponse. The implementation class of this interface can realize different functions according to different requirements. So that the subclass does not have to depend on the implementation of the parent class. In Java, subclasses can implement multiple interfaces, thus greatly enriching the methods of subclass objects.

[0031] The code for this interface is as follows:

[0032] public interface OptimizingContext{

[0033] public HttpServletRequest getServletRequest();

[0034] public HttpServletResponse getServletResponse();

[0035]}

[0036] Create an implementation class OptimizingContextImpl of the Op...

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 provides a Spring-based MVC mode optimization system. With popularization of Web application, a Web development technology gradually forms a series of universal development modes, so that the repeated working amount of Web application developers is greatly decreased, and application developing efficiency is improved. In the modes, the MVC modes based on Mode, View, Controller layered structures have the advantages of low coupling, high transportability, layer-upon-layer separation and the like and gradually serve as main modes for Web application development. But, the MVC modes have the shortcomings that firstly, the MVC modes excessively depend on ServletAPI, the unit testing difficulty is greatly increased; secondly, Servlet cache mechanism is needed to be invoked for Controller catching processing in MVC, and flexibility is insufficient. The Spring-based MVC mode optimization system is used for overcoming the two shortcomings.

Description

technical field [0001] The invention relates to the field of computer application technology, in particular to a Spring-based MVC pattern optimization system. The rapid development of the Internet has had a huge impact on human life and brought earth-shaking changes to society, whether it is a country, government, enterprise or individual. People's favor for information technology has promoted the rapid development of information technology, computer technology and network technology. New theories, new technologies, new concepts, and new ideas emerge in an endless stream. However, with the continuous growth of people's needs, the development process of software products is complicated. The degree is also getting higher and higher. Faced with these problems, people are constantly thinking, exploring and proposing corresponding solutions, such as the generation of design pattern concepts. Background technique [0002] In the past few years, with the popularization of the Int...

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/44
Inventor 王贵友左少标徐宏伟
Owner INSPUR QILU SOFTWARE IND
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