The invention provides a micro-service code automatic generation method,
system and equipment based on a multi-level model and a medium, and relates to the technical field of
software development, the method comprises the following steps: according to
system development stage characteristics and information dimensions, the
system is subdivided into a multi-level
model description framework comprising a demand model, an architecture model, a design model and a deployment model; and based on a mapping rule between a predefined model and a code, converting the multi-level model into an
executable template code based on a Spring micro-
service framework through a hierarchical
code generation mechanism, so as to realize an automatic multi-level
code generation process from demand to a final system. According to the method, the problems that in existing model driving
code generation, input is not standard, generated codes are not complete, a complete
information system is difficult to generate during large
language model code automatic generation, and the codes are possibly inconsistent are solved, and a more efficient, standard and complete code automatic generation scheme is provided.