使用IDEA新建springboot工程

说明:因为习惯eclipse的workspace的结构,所以我提前新建了一个父工程,只是一个简单的maven工程,当做工作空间,下面的项目就是 module(其实和项目一样)。

父工程:microservice-study

使用IDEA新建springboot工程

下面来说新建一个springboot的工程:simple-provider-user

使用IDEA新建springboot工程

新建,选择module

使用IDEA新建springboot工程

选择jdk版本,点击下一步:

使用IDEA新建springboot工程

如果报错:

Cannot download 'https://start.spring.io'

则回到之前的界面将初始化文件的下载地址如下改动即可:

IEAD默认使用https://start.spring.io

把上面地址改成http://start.spring.io 再点击next即可。

下面继续填入内容:

使用IDEA新建springboot工程

再点下一步

使用IDEA新建springboot工程

勾选web,点击next:

使用IDEA新建springboot工程

检查文件路径后,点击finish。

可以在侧边栏看到新建的module

使用IDEA新建springboot工程

完整的目录结构:

使用IDEA新建springboot工程

同时看到了新建的module中包含.gitignore文件,说明这个模板自动添加了git 的忽略配置文件

转载于:https://my.oschina.net/iyinghui/blog/1822578