1, the creation of the MAVEN project's parent project, the remaining modules to inherit this module, some public jar package references, are written in the Pom.xml file of this parent project, the child module can be used
Build another model (LONGKUNKUN-API)
Here is the project to create the Longkunkun-server
After you have completed the project, you will find this pattern:
To add, Longkunkun-server is created in a way that is different from the other two, Longkunkun-api and longkunkun-core are jar formats, and Longkunkun-server is in the war format.
LONGKUNKUN-API only provides interface classes and Pojo classes, the external display, and implementation of the project in the Longkunkun-core implementation, Longkunkun-core module to introduce LONGKUNKUN-API jar package.
Longkunkun-server is just a configuration file, with little code to introduce Longkunkun-api.jar and Longkunkun-cores.jar. It is important to increase the monitoring of the spring container in web.xml files and applicationcontext.xml files, web.xml files, and to publish the designed server to the Service Application Center by deploying the content in Applicationcontext.xml.
A client application such as Longkunkun-web also introduces the Longkunkun-api.jar package, invoking the Longkunkun-server code through the HSF service, which calls the code in Longkunkun-core.
The following article will explain how to call HSF.