文章目录
开发环境
- new Project
- 指定groupId和artifactid
- 指定project的名称为位置
- 父工程不需要src目录, 可进行删除
- pom.xml
- idea版本 : 2018.1.4
- jdk : 1.8
springcloud的父工程的作用是用于jar包的管理. 对于maven项目, 无非就是project和module. module是要在project下的. idea的相关设置 指定maven的安装目录和setting.xml
在如下图中, 加上下面的一句话 -DarchetypeCatalog=internal
创建maven项目, 不选择模板
内容如下 需要注意的是,要在pom.xml中指定 pom 代表打包方式为pom
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