使用idea快速创建springboot项目

使用idea可以快速的创建一个springboot项目

 

依次打开file->new->project

使用idea快速创建springboot项目

 

选中Spring initializr

这里的project SDK要选中你自己的jdk(必须是1.8及以上)

第一次创建的话可以点击new 找到你的jdk的路径添加进来

其他的不用填点击next

使用idea快速创建springboot项目

 

填写你的包名项目名 其他的不用改 点击next

使用idea快速创建springboot项目

 

选择要导入的依赖

选中web->web

点击next

使用idea快速创建springboot项目

 

点击fish完成创建

使用idea快速创建springboot项目

 

可以删掉没用的文件

使用idea快速创建springboot项目

编写一个helloword

新建一个class

使用idea快速创建springboot项目

 

使用idea快速创建springboot项目

 

编写controller代码

使用idea快速创建springboot项目

 

使用idea快速创建springboot项目

 

右键运行

使用idea快速创建springboot项目

 

使用idea快速创建springboot项目

运行成功 访问一下

 

使用idea快速创建springboot项目

访问成功

 

到这里我们的第一个springboot项目就创建完成了