运行 Spring 使用命令引导 CLI,'spring run app.groovy' 给出,"bash: spring: command not found" 错误
Running Spring Boot CLI using the command, 'spring run app.groovy' is giving, "bash: spring: command not found" error
在gitbash中,执行:
$ spring run app.groovy
给出错误,
bash: spring: command not found
在app.groovy
@Controller class JsApp { }
好像spring不在路径中,请参考installation
Shell完成
Shell 为 BASH 和 ZSH 提供了自动完成脚本。将符号链接添加到适当的
您的环境的位置。例如,类似于:
ln -s ./shell-completion/bash/spring /etc/bash_completion.d/spring
在gitbash中,执行:
$ spring run app.groovy
给出错误,
bash: spring: command not found
在app.groovy
@Controller class JsApp { }
好像spring不在路径中,请参考installation
Shell完成
Shell 为 BASH 和 ZSH 提供了自动完成脚本。将符号链接添加到适当的 您的环境的位置。例如,类似于:
ln -s ./shell-completion/bash/spring /etc/bash_completion.d/spring