[英]How do I install Spring Boot CLI in Ubuntu?
I am trying to install Spring Boot CLI in Ubuntu.我正在尝试在 Ubuntu 中安装 Spring Boot CLI。 I am new to spring boot and was trying to learn it.
我是弹簧靴的新手,正在努力学习它。 I have already installed Gradle and groovy but did not find anything online to install Spring boot CLI.
我已经安装了 Gradle 和 groovy,但是没有在网上找到任何可以安装 Spring boot CLI 的东西。
please follow the code请按照代码
sudo apt install unzip zip
curl -s https://get.sdkman.io | bash
source "/home/username/.sdkman/bin/sdkman-init.sh"=
sdk install springboot
spring version
Spring boot CLI 安装指南链接Spring boot CLI
Here is detailed instruction on how to do it, much more useful than official one, at least for manual installation. 这是有关如何执行此操作的详细说明,至少对于手动安装而言比官方的有用得多。 One more thing - to make path change permanent you might need to logout - login, as "source /etc/profile" will be effective only for currently opened terminal.
还有一件事-要使路径更改永久化,您可能需要注销-登录,因为“source /etc/profile”仅对当前打开的终端有效。
You can read the docs for installation steps:您可以阅读文档以了解安装步骤:
Manual installation:手动安装:
java --version
.java --version
。$PATH
environment variable: For example, you can add below lines to your .bashrc
file in * nix systems:$PATH
环境变量中:例如,您可以在 * nix系统中的.bashrc
文件中添加以下行:export SPRING_HOME=/path/to/your/extracted-spring-cli/spring-2.4.0
export PATH=$SPRING_HOME/bin:$PATH
After saving the .bashrc
file, run $ source .bashrc
to reload the environment variables you just added.保存
.bashrc
文件后,运行$ source .bashrc
重新加载刚刚添加的环境变量。
ln -s /path/to/your/extracted-spring-cli/spring-2.4.0/shell-completion/bash/spring /etc/bash_completion.d/spring
ln -s /path/to/your/extracted-spring-cli/spring-2.4.0/shell-completion/zsh/_spring /usr/local/share/zsh/site-functions/_spring
To check if you are using BASH or ZSH, run the command: $ echo $SHELL
.要检查您使用的是 BASH 还是 ZSH,请运行以下命令:
$ echo $SHELL
。
spring --version
. spring --version
。Use this link to get a detailed instruction on how to download the Spring framework successfully, It really helped me a lot after long time of making research.使用此链接可以获取有关如何成功下载 Spring 框架的详细说明,经过长时间的研究,它确实对我帮助很大。
https://www.decodejava.com/download-and-install-spring-framework.htm https://www.decodejava.com/download-and-install-spring-framework.htm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.