原则上要求所有依赖需要满足以下要求:
springboot 项目父项目应为 hb_springboot_parent 项目,出门左转可以找到
项目依赖版本应该与 hb_springboot_parent 相同,如果parent项目未包含依赖,需首先添加到parent项目。
如果遇到依赖冲突,需首先考虑解决,其次才考虑更换低版本依赖。
要求所有最新项目与最新版本的 hb_springboot_parent 依赖版本相同
原则上要求有源码的改写项目将依赖版本同步到 hb_springboot_parent 依赖版本,如果遇到特殊情况可以特殊考虑。原则上要求除hb_springboot_parent
以外的项目中不应该出现依赖版本号。
对已完成且正常运行未扫描到漏洞的项目可以不考虑。
实体类可能面临3种情况
建议:
存在需求1 --> pojo 不存在需求1,存在需求2 --> vo 仅存在需求3 --> entity
尽量采用lombok
代码目录结构 com.nokia 后面加一层代表project简单说明的目录
<groupId>com.nokia.sms</groupId>
<artifactId>sgip_sms_server</artifactId>
<version>1.0</version>
<parent>
<groupId>com.nokia</groupId>
<artifactId>hb_springboot_parent</artifactId>
<version>1.0</version>
<relativePath />
</parent>