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

创建Springboot项目

使用Springboot Initializr创建Springboot项目

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

springboot

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 工具窗口

dashboard


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

dashboard


5. 选择添加Spring Boot

dashboard


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

dashboard




Springboot 插件 - EditStarters

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

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

editstarters


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

editstarters

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

editstarters

  1. 选择要添加的依赖

editstarters

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值