Unlock instant, AI-driven research and patent intelligence for your innovation.

Routing management optimization method based on JFinal framework

An optimization method and routing technology, applied in the field of routing management optimization based on the JFinal architecture, can solve problems such as unfavorable development process management, and achieve the effect of standardizing the development process and management

Inactive Publication Date: 2017-05-31
UESTC COMSYS INFORMATION
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The implementation of routing configuration behind JFinal uses the add method in Routes to add the routing relationship, but in the development process, the project generally has a lot of routing configurations. Whenever a routing Controller is implemented, it must be called separately in Routes. The add method is used once, which is not conducive to the realization of the management of the development process

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
  • Routing management optimization method based on JFinal framework
  • Routing management optimization method based on JFinal framework
  • Routing management optimization method based on JFinal framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] The technical solution of the present invention is further described below.

[0015] A kind of routing management optimization method based on JFinal framework of the present invention, comprises the following steps:

[0016] S1. Define an interface annotation ControllerBind for each Controller interface, and define a unique name for each Controller interface as the path of the routing request;

[0017] S2. Obtain all the routes of the project by name, and put all the obtained routes into a collection;

[0018] S3. Bind the routes in the collection to the model database through the interface annotation ControllerBind;

[0019] S4. According to the interface annotation ConrollerBind returned by the getAnnotation method, get the String returned by viewPath() to determine whether to add a route. If the String contains the name of the Controller interface, add the interface annotation ControllerBind corresponding to the Controller interface, otherwise do not add it.

[00...

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 a routing management optimization method based on a JFinal framework. The routing management optimization method comprises the following steps: S1, defining an interface annotation Controller Bind for each Controller interface, defining a unique name for each Controller interface and taking the unique name as a path of a routing request; S2, obtaining all routings of a project through the name and putting all the obtained routings into one set; S3, binding the routings in the set with a model database through the interface annotation Controller Bind respectively; S4, judging whether the routing is added or not into String returned back by Viewpath () according to the interface annotation Controller Bind returned back by a get Annotation method; if the String contains the name of the Controller interface, adding the interface annotation Controller Bind corresponding to the Controller interface; otherwise, not adding. According to the routing management optimization method disclosed by the invention, each routing can be automatically added, and each routing Controller does not need to be independently added, so that a development flow and management are standardized.

Description

technical field [0001] The invention particularly relates to a routing management optimization method based on the JFinal framework. Background technique [0002] JFinal is an extremely fast web development framework based on the Java language. Its core design goals are fast development, less code, simple and fast learning, powerful functions, lightweight, easy to expand, and Restful. While having all the advantages of the Java language, it also has the development efficiency of dynamic languages ​​such as ruby ​​and python. [0003] The development of the JFinal project began in early 2011, and the project was open-sourced on March 18, 2012, using the Apache License 2.0 protocol that is friendly to commercial applications. Since its open source, it has been welcomed by developers. Currently, the user base developed using the JFinal framework is growing rapidly, and there are also some commercial Internet projects that have already been launched. JFinal has attracted much ...

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): H04L12/24
CPCH04L41/0823
Inventor 唐雪飞赵李超
Owner UESTC COMSYS INFORMATION