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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
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