CN106789313A - Routing management optimization method based on JFinal frameworks - Google Patents

Routing management optimization method based on JFinal frameworks Download PDF

Info

Publication number
CN106789313A
CN106789313A CN201611261818.4A CN201611261818A CN106789313A CN 106789313 A CN106789313 A CN 106789313A CN 201611261818 A CN201611261818 A CN 201611261818A CN 106789313 A CN106789313 A CN 106789313A
Authority
CN
China
Prior art keywords
route
interface
controller
controllerbind
jfinal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611261818.4A
Other languages
Chinese (zh)
Inventor
唐雪飞
赵李超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHENGDU COMSYS INFORMATION TECHNOLOGY Co Ltd
Original Assignee
CHENGDU COMSYS INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHENGDU COMSYS INFORMATION TECHNOLOGY Co Ltd filed Critical CHENGDU COMSYS INFORMATION TECHNOLOGY Co Ltd
Priority to CN201611261818.4A priority Critical patent/CN106789313A/en
Publication of CN106789313A publication Critical patent/CN106789313A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Abstract

The invention discloses a kind of routing management optimization method based on JFinal frameworks, comprise the following steps:S1, it is that each Controller interface defines interface and explains ControllerBind, and paths of unique name as route requests is defined to each Controller interface;S2, by name obtain all of route of project, and by obtain all of route be put into one set in;S3, by the route in set respectively by interface explain ControllerBind bind model database;The String that S4, the interface note ConrollerBind returned according to getAnnotation methods obtain viewPath () returns judges whether addition route, if containing the name of Controller interfaces in String, the interface for then adding correspondence Controller interfaces explains ControllerBind, otherwise without.The present invention can carry out each route automatic addition, it is not necessary to each route Controller individually be added again, so that specification development process and management.

Description

Routing management optimization method based on JFinal frameworks
Technical field
The present invention be more particularly directed to a kind of routing management optimization method based on JFinal frameworks.
Background technology
JFinal is the very fast web Development Frameworks based on Java language, and its core design target is fast development rate, code Amount is few, learns simple and fast, easily powerful, lightweight, extension, Restful.Possessing the same of all of advantage of Java language The development efficiency of the dynamic languages such as Shi Yongyou ruby, python.
JFinal project developments are started from the beginning of 2011, and project was increased income on March 18th, 2012, using friendly to business application The agreements of Apache Licence 2.0.Welcome by numerous developers deeply since increasing income, at present using JFinal Development of Framework Customer group is grown rapidly, while being no lack of some commercialization internet projects reached the standard grade.JFinal increases income Largest In China Community gets most of the attention, and has been always popular project since increase income.JFinal will always adhere to following design object:Exploitation is rapid, Size of code is few, study is simple, powerful, lightweight, easily extension, Restful.While above design object is adhered to, base In micro-kernel+comprehensive extended pattern framework, the extremely comprehensive WEB+ORM Development Frameworks of function are made.The life of thorough liberation developer Force of labor, thoroughly improves the exploitation experience of developer, allows software development to turn into a carefree thing.
JFinal has gradually formed a set of very fast development approach by practice, and this method will be very fast in the JFinal that will be made Exploitation community shows.
JFinal uses the comprehensive extension framework of micro-kernel, and comprehensive refers to its extended mode performance shape spatially Formula.JFinal is made up of the major part of Handler, Interceptor, Controller, Render, Plugin five.
The routing configuration implementation of JFinal back of the body bodies adds the relation of route by the add methods inside Routes, but During exploitation, the configuration generally for route of project can be a lot, whenever realizing that a route Controller must Need individually call add methods inside Routes once, be unfavorable for the realization of the management of development process.
The content of the invention
It is an object of the invention to overcome the deficiencies in the prior art, there is provided one kind can be carried out each route and added automatically Plus, it is not necessary to again to each route Controller individually added so that specification development process and management based on The routing management optimization method of JFinal frameworks.
The purpose of the present invention is achieved through the following technical solutions:Routing management optimization side based on JFinal frameworks Method, comprises the following steps:
S1, it is that each Controller interface defines interface and explains ControllerBind, and to each Controller interfaces define paths of unique name as route requests;
S2, by name obtain all of route of project, and by obtain all of route be put into one set in;
S3, by the route in set respectively by interface explain ControllerBind bind model database;
S4, the interface returned according to getAnnotation methods explain ConrollerBind and obtain viewPath () returns String judge whether addition route, if in String contain the name of Controller interfaces, addition correspondence The interface of Controller interfaces explains ControllerBind, otherwise without.
The beneficial effects of the invention are as follows:The present invention can carry out each route automatic addition, it is not necessary to again to each Individual route Controller is individually added, so that specification development process and management.
Specific embodiment
Technical scheme is further illustrated below.
A kind of routing management optimization method based on JFinal frameworks of the invention, comprises the following steps:
S1, it is that each Controller interface defines interface and explains ControllerBind, and to each Controller interfaces define paths of unique name as route requests;
S2, by name obtain all of route of project, and by obtain all of route be put into one set in;
S3, by the route in set respectively by interface explain ControllerBind bind model database;
S4, the interface returned according to getAnnotation methods explain ConrollerBind and obtain viewPath () returns String judge whether addition route, if in String contain the name of Controller interfaces, addition correspondence The interface of Controller interfaces explains ControllerBind, otherwise without.
The specific procedure for realizing the routing management optimization method based on JFinal frameworks of the invention is:
First, the realization of AutoControllerBindPluginList classes:
2nd, the class ClassSearcheres that AutoControllerBindPluginList needs realizes passing through father Class is searched:
3rd, the realization of ControllerBind classes:
One of ordinary skill in the art will be appreciated that embodiment described here is to aid in reader and understands this hair Bright principle, it should be understood that protection scope of the present invention is not limited to such especially statement and embodiment.This area Those of ordinary skill can according to these technical inspirations disclosed by the invention make it is various do not depart from essence of the invention other are each Plant specific deformation and combine, these deformations and combination are still within the scope of the present invention.

Claims (1)

1. the routing management optimization method of JFinal frameworks is based on, it is characterised in that comprised the following steps:
S1, it is that each Controller interface defines interface and explains ControllerBind, and to each Controller interfaces define paths of unique name as route requests;
S2, by name obtain all of route of project, and by obtain all of route be put into one set in;
S3, by the route in set respectively by interface explain ControllerBind bind model database;
S4, the interface returned according to getAnnotation methods explain ConrollerBind and obtain viewPath () returns String judges whether addition route, if containing the name of Controller interfaces, addition correspondence in String The interface of Controller interfaces explains ControllerBind, otherwise without.
CN201611261818.4A 2016-12-30 2016-12-30 Routing management optimization method based on JFinal frameworks Pending CN106789313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611261818.4A CN106789313A (en) 2016-12-30 2016-12-30 Routing management optimization method based on JFinal frameworks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611261818.4A CN106789313A (en) 2016-12-30 2016-12-30 Routing management optimization method based on JFinal frameworks

Publications (1)

Publication Number Publication Date
CN106789313A true CN106789313A (en) 2017-05-31

Family

ID=58953950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611261818.4A Pending CN106789313A (en) 2016-12-30 2016-12-30 Routing management optimization method based on JFinal frameworks

Country Status (1)

Country Link
CN (1) CN106789313A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346976A (en) * 2020-11-09 2021-02-09 深圳市安软科技股份有限公司 Interface document generation method, device and system based on webpage and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150202265A1 (en) * 2010-06-28 2015-07-23 Bbs-Bioactive Bone Substitutes Oy Method for preparing a bone protein preparation and a bone protein preparation
CN104966152A (en) * 2015-06-08 2015-10-07 深圳中质安质量安全技术评价中心有限公司 Electric power safety production management system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150202265A1 (en) * 2010-06-28 2015-07-23 Bbs-Bioactive Bone Substitutes Oy Method for preparing a bone protein preparation and a bone protein preparation
CN104966152A (en) * 2015-06-08 2015-10-07 深圳中质安质量安全技术评价中心有限公司 Electric power safety production management system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网友: "《JFinal的Routers机制详解》", 《HTTPS://BLOG.CSDN.NET/XXSSYYYYSSXX/ARTICLE/DETAILS/51673034》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346976A (en) * 2020-11-09 2021-02-09 深圳市安软科技股份有限公司 Interface document generation method, device and system based on webpage and computer equipment

Similar Documents

Publication Publication Date Title
CN103605498B (en) The multithreading of mono-thread tasks performs method and system
MY155867A (en) Scheduling collections in a scheduler
CN102665231B (en) Method of automatically generating parameter configuration file for LTE (Long Term Evolution) system
RU2019111902A (en) PLATFORM "FUNCTION-AS-SERVICE" (FaaS) IN BLOCKCHAIN NETWORKS
CN110516789A (en) The processing method of instruction set, device and relevant device in convolutional network accelerator
CN112527262A (en) Automatic vector optimization method for non-uniform width of deep learning framework compiler
CN105718601A (en) Dynamic business integrating model and application method thereof
CN106126564A (en) A kind of method rendered based on dynamic template language
RU2009131714A (en) USING THE REGISTER RENAME SYSTEM FOR TRANSFER OF INTERMEDIATE RESULTS BETWEEN COMPOSITE COMMANDS AND EXTENDED TEAM
CN106789313A (en) Routing management optimization method based on JFinal frameworks
Zeni et al. Optimized implementation of the hpcg benchmark on reconfigurable hardware
CN104503776A (en) Method for rapidly packaging android application on APP development platform
CN103729180A (en) Method for quickly developing CUDA (compute unified device architecture) parallel programs
CN106293862A (en) A kind of analysis method and device of expandable mark language XML data
CN105892795A (en) Desktop icon arranging method and system
CN111400281B (en) GIS data quality inspection and storage method for OSS object storage
CN109213605A (en) A kind of server I suitable for high concurrent scene/O implementation method
CN105574237B (en) System in package BGA power ground pin distribution optimization method based on population
CN103902289A (en) Method for quickly adjusting text direction
CN103150162B (en) Improve the method for embedded software code degree of share
CN107959662A (en) The method and system of web portal security detection
CN104699520B (en) A kind of power-economizing method based on virtual machine (vm) migration scheduling
CN105808212A (en) Extension method and system of product support tool
CN109958843A (en) A kind of laptop high efficiency and heat radiation support frame
Ribeiro et al. JSensor: A parallel simulator for wireless sensor networks and distributed systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication