Wednesday, January 16, 2019

Installing spring boot CLI and spring cloud on centos


vi .bash_profile

export SPRING_HOME=/home/centos/spring-2.1.2.RELEASE/
export PATH

to test, type:

spring version

Spring CLI v2.1.2.RELEASE

See also

vi app.groovy

class WebApplication {

String home() {
"Hello World!"


spring run app.groovy
curl http://localhost:8080/

Now you can install Spring Cloud:

spring install

spring cloud configserver

I get

Caused by: java.lang.NoSuchMethodError:$LauncherOptionHandler.option(Ljava/util/Collection;Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder;

see here

If I install an older version of Spring CLI, it works:

More information on the Spring Cloud command here

No comments: