Java 未找到Spring CLI';测试';命令
我已在Windows 10上安装了spring-2.2.4.RELEASE,但当我尝试通过“spring测试”执行测试时,命令行显示“'test'不是有效的命令。请参阅'help'。”并且我键入了help命令。我看到了以下内容: 可用命令包括:Java 未找到Spring CLI';测试';命令,java,spring,spring-boot,spring-cli,Java,Spring,Spring Boot,Spring Cli,我已在Windows 10上安装了spring-2.2.4.RELEASE,但当我尝试通过“spring测试”执行测试时,命令行显示“'test'不是有效的命令。请参阅'help'。”并且我键入了help命令。我看到了以下内容: 可用命令包括: run [options] <files> [--] [args] Run a spring groovy script grab Download a spring groovy script's dependen
run [options] <files> [--] [args]
Run a spring groovy script
grab
Download a spring groovy script's dependencies to ./repository
jar [options] <jar-name> <files>
Create a self-contained executable jar file from a Spring Groovy script
war [options] <war-name> <files>
Create a self-contained executable war file from a Spring Groovy script
install [options] <coordinates>
Install dependencies to the lib/ext directory
uninstall [options] <coordinates>
Uninstall dependencies from the lib/ext directory
init [options] [location]
Initialize a new project using Spring Initializr (start.spring.io)
encodepassword [options] <password to encode>
Encode a password for use with Spring Security
shell
Start a nested shell
运行[options][--][args]
运行SpringGroovy脚本
抓住
将SpringGroovy脚本的依赖项下载到./repository
jar[选项]
从SpringGroovy脚本创建一个自包含的可执行jar文件
战争[选择]
从SpringGroovy脚本创建一个自包含的可执行war文件
安装[选项]
将依赖项安装到lib/ext目录
卸载[选项]
从lib/ext目录卸载依赖项
初始化[选项][位置]
使用Spring初始化器(start.Spring.io)初始化新项目
编码密码[选项]
对密码进行编码,以便与Spring Security一起使用
壳
开始一个嵌套的shell
是的,没有test命令,但我在每个springcli测试教程中搜索它们,它们都为cligroovy测试应用“test”命令。因此,问题是:
感谢您支持CLI中的测试(test命令)。问题是“一旦应用程序进入需要测试套件的阶段,就应该将其转换为Maven或Gradle项目”。在CLI中支持测试(test命令)。问题是“一旦一个应用程序进入了需要测试套件的阶段,它就应该转换成Maven或Gradle项目”