[JAVA] [MacOS] I was disturbed by ruby when installing Spring Boot CLI


If you want to run a Groovy app using the Spring Boot CLI Being disturbed by "Spring" of "Ruby Gem" Because the command "spring run" of Spring Boot CLI could not be done Make a note of the solution.


  1. Pass the path for Spring Boot CLI

Add the following two lines to .zshrc (Please convert .zshrc to .bashrc according to your environment)

export SPRING_HOME=/Users/Y_h/spring-1.5.6.RELEASE


source ~/.zshrc

```Reflect the change in

 2. Check the operation of Spring Boot CLI

$ spring

 And enter in Terminal ...

usage: spring [--help] [--version] []

Available commands are:

run [options] [--] [args] Run a spring groovy script

test [options] [--] [args] Run a spring groovy script test

grab Download a spring groovy script's dependencies to ./repository

jar [options] Create a self-contained executable jar file from a Spring Groovy script

war [options] Create a self-contained executable war file from a Spring Groovy script

install [options] Install dependencies to the lib/ext directory

uninstall [options] Uninstall dependencies from the lib/ext directory

init [options] [location] Initialize a new project using Spring Initializr (start.spring.io)

shell Start a nested shell

Common options:

-d, --debug Verbose mode Print additional status information for the command you are running

See 'spring help ' for more information on a specific command.

 Is displayed, OK
 Thank you

# Finally
 If you look closely at the installation guide, it's written.
 I'm addicted to ...

Recommended Posts

[MacOS] I was disturbed by ruby when installing Spring Boot CLI
What I fixed when updating to Spring Boot 1.5.12 ・ What I was addicted to
I was addicted to installing Ruby/Tk on MacOS
What I was addicted to when developing a Spring Boot application with VS Code
A memo that I was addicted to when making batch processing with Spring Boot
[Spring boot] I thought about testable code by DI
A site that was easy to understand when I was a beginner when I started learning Spring Boot
What I stumbled upon when installing Ruby on Ubuntu
[Spring Boot] Environment construction (macOS)
Memorandum of understanding when Spring Boot 1.5.10 → Spring Boot 2.0.0
I tried GraphQL with Spring Boot
Beginning with Spring Boot 0. Use Spring CLI
I tried Flyway with Spring Boot