Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

MVC-based path mapping method and device

A mapping method and path technology, which is applied in the Internet field, can solve the problems that path mapping can only be added manually, and no solution has been proposed, so as to save the work of setting mapping relationships, manage routing well, and improve the mapping speed.

Active Publication Date: 2018-03-16
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For the problem that path mapping can only be added manually in related technologies, no effective solution has been proposed so far

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
  • MVC-based path mapping method and device
  • MVC-based path mapping method and device
  • MVC-based path mapping method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] According to an embodiment of the present invention, an embodiment of an MVC-based path mapping method is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0056] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Take running on a computer terminal as an example, figure 1 It is a hardware structural block diagram of a computer terminal based on an MVC-based path mapping method according to an embodiment of the present invention. Such as figure 1 As shown, the computer terminal 100 may include one or more (only one is shown in the figure) processor...

Embodiment 2

[0078] According to an embodiment of the present invention, an embodiment of a request response method is provided. Under the operating environment as in Example 1, the application provides the following image 3 The request-response method shown. image 3 is a flowchart of a method for requesting a response according to an embodiment of the present invention. Such as image 3 As shown, an optional scheme of the request response method includes the following steps:

[0079] Step S301, receiving a request from a client; the request includes a Uniform Resource Locator URL.

[0080] In the solution provided by the above step S301 of the present application, the execution subject is the server, specifically, the distributor for uniformly receiving all requests. The request sent by the client can be in various forms, as long as the request to realize data interaction is applicable to this application, for example: link, http webpage request, protocol, etc.

[0081] Step S302, ...

Embodiment 3

[0096] According to an embodiment of the present invention, an MVC-based path mapping device is also provided. Such as Figure 5 As shown, the device includes: a configuration file acquisition module 10 , a routing file acquisition module 20 , a storage module 30 , and a mapping module 40 .

[0097] The configuration file acquiring module 10 is configured to acquire a configuration file, and the configuration file includes a storage path of the routing file.

[0098] The routing file obtaining module 20 is used to obtain the routing file, the directory name of the upper directory of the routing file, the file name of the routing file and the function name of each function in the routing file according to the configuration file.

[0099] The storage module 30 is configured to store the execution program corresponding to each function in the memory of the server.

[0100] The mapping module 40 is used to store the mapping relationship between the directory name of the superior...

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 MVC-based path mapping method and device. The method comprises the steps that a configuration file comprising a storage path of a routing file is acquired; the routing file,a directory name of a parent directory of the routing file, a file name of the routing file and function names of various functions in the routing file are acquired; an execution program corresponding to each function is stored in a memory of a server; and a mapping relation between function paths and the storage positions of the functions in the server is stored. According to the MVC-based pathmapping method and device, the mapping relation between the paths and the functions can be automatically stored, the mapping relation of the functions does not need to be configured manually, and therefore the mapping speed of the functions and the paths is significantly increased; and in addition, due to the fact that the functions are stored in the memory of the server, the functions can be quickly called from the memory when user access is received, the file reading time is saved, and then the access efficiency is effectively improved.

Description

technical field [0001] The present invention relates to the technical field of the Internet, in particular to an MVC-based path mapping method and device. Background technique [0002] The development of software systems has become increasingly complex, and many details must be paid attention to when processing business logic, such as transaction processing, security, data flow control, etc. For example, to implement a user registration function, the server needs to The data is checked for security, such as SQL injection attacks and XSS injection attacks. In addition, it is also necessary to control the access frequency, etc. After all these logics are completed, the logic of persisting user information to the database is executed, thus It can be seen that these logics are common and do not depend on business logic. MVC manual mapping refers to manually configuring the mapping relationship between the resource path requested by the user and the routing function. The full n...

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): H04L12/721G06F9/54
CPCG06F9/547H04L45/14
Inventor 何彦军
Owner TENCENT TECH (SHENZHEN) CO LTD
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
PatSnap group products