文章目录
一. 十次方项目创建父工程
- 一. 十次方项目创建父工程
(1)选择菜单file-new project ,弹出窗口中左侧菜单选择Maven ,点击next按钮 (2)填写GroupId 和ArtifacetId ,点击next按钮
(3)填写项目的名称和项目保存的路径后, 点击Finish 完成
(4)删除src文件夹, 因为maven的父工程无需有java代码,只需提供pom文件,管理子模块
(5)修改pom.xml 添加以下配置
4.0.0
com.tensquare
tensquare_parent
1.0-SNAPSHOT
pom
tensquare_parent
十次方项目
org.springframework.boot
spring-boot-starter-parent
2.0.1.RELEASE
UTF-8
UTF-8
1.8
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
spring-snapshots
Spring Snapshots
https://repo.spring.io/snapshot
true
spring-milestones
Spring Milestones
https://repo.spring.io/milestone
false
spring-snapshots
Spring Snapshots
https://repo.spring.io/snapshot
true
spring-milestones
Spring Milestones
https://repo.spring.io/milestone
false
org.springframework.cloud
spring-cloud-dependencies
Finchley.M9
pom
import
如果要在父模块中,创建子模块, 那么如下图所示,直接在父工程中, 右键 New 一个新的Module即可