3分钟快速入门Spring Boot Cli

打开Spring的官网,在很显眼的位置上你就可以看到下图。

似乎有一些狂妄。

一直以来,由于自己的自身认知水平问题,我对这个宣传是持有否定意见的。但是当我看到了Spring Boot Cli之后

好吧,真香~

Spring Boot Cli官网传送

先来看一下官方是如何定义SpringBootCli的:

Spring Cloud CLI is a set of extensions for the Spring Boot CLI making it possible to run Spring Cloud server apps and write Spring Cloud apps in Groovy scripts and run them from a shell. Auto-imports and dependency management is provided for all Spring Cloud projects.

大概翻译一下:

Spring Cloud CLI是Spring Boot CLI的一组扩展,可以运行Spring Cloud服务器应用程序并在Groovy脚本中编写Spring Cloud应用程序并从shell运行它们。为所有Spring Cloud项目提供自动导入和依赖关系管理。

废话少说,进入安装步骤:

For Windows

打开浏览器,从http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/ 可以下载不同的版本,Windows的话选择以.zip结尾,下载之后进行解压。

本人以spring-boot-cli-1.5.9.RELEASE为例进行说明。

 

编辑CLI环境变量信息

 

将信息写入Path中

 

验证环境变量是否生效

 

如上所示,代表环境已经安装完毕。下面编写HelloWorld

执行 spring run Hello.java

访问http://localhost:8080/hello

新手,欢迎拍砖~更多文章可搜索:彪悍大蓝猫

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

彪悍大蓝猫

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值