The invention discloses a Restful
service development method and device based on an SSM framework. The method comprises the steps of communication protocol and format definition,
data verification,
exception handling, basic control implementation class,
basic service interface and implementation class, implementation of calling logic among a
control layer, a
service layer and a persistent layer, and a corresponding relation between a
data model and a function module; packaging data and tools; defining a template file of the target code file, generating a code file according to the template file, and generating a
data model and a persistent layer code, wherein according to the basic module, the tool module and the
code generation module, function management is achieved, codes of a configuration file, a
data model and a persistent layer and codes of a
service layer and a
control layer are automatically generated, basic
data verification is added to a data model field, and query conditions of the
service layer are modified; and respectively modifying interfaces of corresponding function management according to different requirements of each function management. The development and maintenance efficiency of the application service is improved, and the development threshold of the application service is reduced.