摘要 |
The invention provides a method for generating annotation of configuration files and a device for generating configuration files. The method includes: identifying the tag of an annotation in a file to be generated, wherein the tag includes a start tag and an end tag and the content between the start tag and the end tag is an annotation; according to the start tag or the end tag, and the correspondence between the tag and the generation position of the tag in the configuration file, acquiring the generation position of the annotation in the configuration file; and writing the annotation into the generation position. The device at least includes an annotation generation module, wherein the annotation generation module includes an identification module, an acquisition module and a writing module. |