创建Springboot项目,以及使用EditStarters插件快速添加依赖

创建Springboot项目

使用Springboot Initializr创建Springboot项目

  1. 新建ProjectModule
  2. 选择Spring Initializr
  3. 选择使用start.spring.io

创建Springboot项目,以及使用EditStarters插件快速添加依赖

start.spring.io有时访问缓慢,或甚至无法访问,可以选择使用国内的镜像服务器:

  • spring.wht6.cn
  • start.aliyun.com(支持Spring Cloud Alibaba)




与 STS 的 Boot Dashboard 类似的Spring boot 项目控制台

STS 的 Boot Dashboard工具可以方便地控制Spring boot 项目的启停,IDEA提供了类似的工具:Services 工具窗口。

执行下面操作开启Spring boot控制台:

  1. 打开 View | Tool Windows | Services 工具窗口

创建Springboot项目,以及使用EditStarters插件快速添加依赖


2. 找到 Services 工具窗口
3. 点击添加按钮
4. 选择Run Configuration Type

创建Springboot项目,以及使用EditStarters插件快速添加依赖


5. 选择添加Spring Boot

创建Springboot项目,以及使用EditStarters插件快速添加依赖


这里列出所有 Spring boot 项目的启动类,可以方便的控制项目启停。

创建Springboot项目,以及使用EditStarters插件快速添加依赖




Springboot 插件 - EditStarters

STS开发工具中提供的 Edit Starters 功能非常好用,可以方便的设置 Springboot 和 Spring Cloud 的依赖。IDEA中可以使用 EditStarters 插件来添加此功能。

  • 安装EditStarters插件
  1. 在设置中选择Plugins
  2. 选择插件市场来安装插件
  3. 搜索EditStarters
  4. 点击Install安装,安装后重启IDEA

创建Springboot项目,以及使用EditStarters插件快速添加依赖


  • 使用EditStarters添加Springboot依赖
  1. 在pom.xml中,按快捷键Alt+Insert
  2. 选择Edit Starters

创建Springboot项目,以及使用EditStarters插件快速添加依赖

  1. 填写Spring Initializr路径,
    可以使用官方的start.spring.io,或者也可以填写国内镜像地址。

创建Springboot项目,以及使用EditStarters插件快速添加依赖

  1. 选择要添加的依赖

创建Springboot项目,以及使用EditStarters插件快速添加依赖

转载地址:
https://blog.****.net/weixin_38305440/article/details/106323637