使用SDK的带有CLI的SpringBoot版本

时间:2018-12-18 13:42:31

标签: spring-boot groovy

使用CLI时如何设置Spring Boot版本?我找到了有关如何使用SDKMAN进行操作的说明,但效果并不理想。还有其他方法可以设置Spring Boot版本以供CLI使用吗?

okta-groovy $ sdk current springboot

Not using any version of springboot
okta-groovy $ sdk list springboot
================================================================================
Available Springboot Versions
================================================================================
   * 2.1.1.RELEASE       1.5.10.RELEASE      1.3.8.RELEASE       1.1.12.RELEASE 
     2.1.0.RELEASE       1.5.9.RELEASE       1.3.7.RELEASE       1.1.11.RELEASE 
     2.0.7.RELEASE       1.5.8.RELEASE       1.3.6.RELEASE       1.1.10.RELEASE 
     2.0.6.RELEASE       1.5.7.RELEASE       1.3.5.RELEASE       1.1.9.RELEASE  
     2.0.5.RELEASE       1.5.6.RELEASE       1.3.4.RELEASE       1.1.8.RELEASE  
     2.0.4.RELEASE       1.5.5.RELEASE       1.3.3.RELEASE       1.1.7.RELEASE  
     2.0.3.RELEASE       1.5.4.RELEASE       1.3.2.RELEASE       1.1.6.RELEASE  
     2.0.2.RELEASE       1.5.3.RELEASE       1.3.1.RELEASE       1.1.5.RELEASE  
     2.0.1.RELEASE       1.5.2.RELEASE       1.3.0.RELEASE       1.1.4.RELEASE  
     2.0.0.RELEASE       1.5.1.RELEASE       1.2.8.RELEASE       1.1.3.RELEASE  
     1.5.18.RELEASE      1.4.7.RELEASE       1.2.7.RELEASE       1.1.2.RELEASE  
     1.5.17.RELEASE      1.4.6.RELEASE       1.2.6.RELEASE       1.1.1.RELEASE  
     1.5.16.RELEASE      1.4.5.RELEASE       1.2.5.RELEASE       1.1.0.RELEASE  
     1.5.15.RELEASE      1.4.4.RELEASE       1.2.4.RELEASE       1.0.2.RELEASE  
     1.5.14.RELEASE      1.4.3.RELEASE       1.2.3.RELEASE       1.0.1.RELEASE  
     1.5.13.RELEASE      1.4.2.RELEASE       1.2.2.RELEASE       1.0.0.RELEASE  
     1.5.12.RELEASE      1.4.1.RELEASE       1.2.1.RELEASE                      
     1.5.11.RELEASE      1.4.0.RELEASE       1.2.0.RELEASE                      

================================================================================
+ - local version
* - installed
> - currently in use
================================================================================


okta-groovy $ sdk use springboot 2.1.1.RELEASE

Using springboot version 2.1.1.RELEASE in this shell.
okta-groovy $ 
okta-groovy $ sdk current springboot

Not using any version of springboot
okta-groovy $ spring --version
Spring CLI v1.2.5.RELEASE
okta-groovy $ sdk install springboot 2.1.1.RELEASE

Stop! springboot 2.1.1.RELEASE is already installed.
okta-groovy $ 

“ $ spring run testbot.groovy”使用的是Spring Boot版本1.2.5.RELEASE,无法更改。我有macOS Mojave 10.14.2。

0 个答案:

没有答案