一、项目 - New - Module
二、选择Maven - jdk- Next
三、修改Name为common - 查看GroupId是否正确 - Finish
四、修改pom.xml文件,放入通用包,供其他模块使用
org.springframework.boot
spring-boot-starter
org.apache.commons
commons-lang3
3.11
mysql
mysql-connector-java
runtime
org.mybatis.spring.boot
mybatis-spring-boot-starter
2.0.0
com.alibaba
druid-spring-boot-starter
1.1.22
org.springframework.boot
spring-boot-maven-plugin
true
完整pom.xml展示
bi-cloud
com.bi.cloud
1.0-SNAPSHOT
4.0.0
common
org.springframework.boot
spring-boot-starter
org.apache.commons
commons-lang3
3.11
mysql
mysql-connector-java
runtime
org.mybatis.spring.boot
mybatis-spring-boot-starter
2.0.0
com.alibaba
druid-spring-boot-starter
1.1.22
org.springframework.boot
spring-boot-maven-plugin
true
五、在common模块下,创建dao、pojo、vo、service、mapper层,供后续使用
common 通用模块创建完毕
前往:第四章 engine 业务处理子模块创建 + Nacos安装配置