Font Size: a A A

An Automatic Generation Method Of The SSM Framework Oriented To The REST Interface Model

Posted on:2021-05-16Degree:MasterType:Thesis
Country:ChinaCandidate:J D GuoFull Text:PDF
GTID:2518306308467524Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
The REST interface specifications have the characteristics of consistency and unification.It only needs to provide a set of interfaces that can provide services for Web,Android and iOS applications without difference.As one of the mainstream framework in Java development,the SSM framework is popular among back-end developers for its simple configuration and hierarchical functional separation.However,in the process of software development,the code of accessing the database has great similarity,and it always steps across multiple layers such as the persistent layer,service logic layer and controller layer.Developers need to define REST interfaces first,and then spend a lot of time to create and maintain the implementation.With this regard,this paper designed a method for automatically generating multi-layer code of the SSM framework oriented to the REST interface model,in order to improve the efficiency of defining the REST interface and coding server-side code within the SSM framework.Back-end developers only need to use UML to build data models according to the established rules.Then,use the formal language proposed in this paper to describe the REST interface that needs to be implemented.Finally,the final REST interface definition document and its underlying code can be automatically generated according to the method proposed in this paper.First,this paper designed a modeling language and mapping rules for REST interfaces.This language can be used to describe the addition,deletion,modification,and query functions of the REST interface.In addition,it can also describe associative queries,fuzzy queries,batch operations,and many complex data access services.Then,this paper proposed the mapping rules from this language to YAML.The parsing results will be used as input with the parsing results of UML data model to automatically generate YAML-based REST interface definition files.In the multi-layer code automatic generation stage of the SSM framework,this paper proposed the mapping rules from the REST interface modeling language to various levels of code in the SSM framework.Through this mapping rule,the back-end implementation code of the basic functions under the SSM framework can be automatically generated on the basis of the REST interface to form a invokable REST interface service.Not only can this method save the development time of back-end developers,but also support them to perform efficient and rapid secondary development based on the generated code.In summary,the automatic generation method of the REST interface model oriented SSM framework multilayer code designed in this paper can describe the interface function through the easy-to-understand modeling language,and use model-driven and template-driven automated code generation technology to realize the automatically generation of the SSM framework multilayer code.This method will improve the scalability and maintainability of the system,and also enhance the quality and efficiency of the software.
Keywords/Search Tags:REST interface, Data Access Service, Modeling, Automated Code Generation
PDF Full Text Request
Related items