-01 towering building a stage, the primary foundation - Chapter 2 single architecture design and project preparation -2-4 hierarchical design principles to explain

A factory production car,

business modules split, layered.
Maven project polymerization.
common.jar: General methods, tools, enum, and the like, it is a separate package
pojo.jar: class related entity, Entity,
mapper.jar: a data layer, dao layer can be considered, because we use Mybatis, so when defined here is defined as a mapper. If orm other frame for example JPA, defined here as the customer dao layer.
service.jar: the business layer, 
controller.jar: receiving a request, processing the request.

By layering maven, making the project more clear,
maven split the project into several different sub-modules, so that other items may be needed to rely on. Different sub-modules grouped together, the final project is to be run.
And they may use different components of mutually different dependency.

End






 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/12025146.html