Routing configuration method and device and server
The embodiment of the invention discloses a route configuration method and device and a server, and the method comprises the steps that the server analyzes a plurality of business logic files in a folder of a project, and obtains the attribute of each business logic file in the plurality of business...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention discloses a route configuration method and device and a server, and the method comprises the steps that the server analyzes a plurality of business logic files in a folder of a project, and obtains the attribute of each business logic file in the plurality of business logic files, such as a request method and an entry method; furthermore, for each service logic filein the plurality of service logic files, according to the request method, the entry method and the path of each service logic file, the route of each service logic file is automatically generated, the routes of the plurality of service logic files are obtained, and the routes of the plurality of service logic files are loaded to the memory. By adopting the method and the device, a developer can be prevented from manually modifying or creating the route, the route error probability is reduced, and the project development efficiency is improved.
本发明实施例公开了一种路由的配置方法、装置以及服务器,方法包括:服务器解析项目的文件夹中的多个业务逻辑文件,得到多个业务逻辑文件中每一个业务逻辑文件 |
---|