1. Spring application Development Common Package naming specification
- Controller: Controllers
- Service: Services-Interfaces
- Impl: Service-Implementation
- Integration
- SAO: Call other modules, put feign's call below this
- Web: For front-end invocation
- Remote: Call external interface (interface provided by other modules)
- API: Calls between modules (external interface)
- OPENAPI: External interface
- DAO: Persistent Layer/mybatis interface
- Entity: Database Entities
- Mapper: Persistence layer/mybatis implementation
- VO: Front page to Controller's parameter object
- DTO: Call interface Pass using (enter parameter/out parameter)
- Bo: Using the service layer
- Po:mapper Database Operation entry parameter
- Common: Common components
- Config: Configuration class
- Utils: Tool Class
- Constant: constant
- Pojo naming: Unification is the first letter capitalized
For example: Podetailvo,podetaildto,podetailbo
Example Package directory structure:
Common specifications for spring application development