Java ./mvnw spring boot:run命令显示";这次春天出人意料;消息

Java ./mvnw spring boot:run命令显示";这次春天出人意料;消息,java,spring,windows,spring-boot,maven,Java,Spring,Windows,Spring Boot,Maven,提供了一个运行应用程序的演示示例。/mvnw spring boot:run命令位于“complete”文件夹/目录中,在我们使用构建框架maven的情况下。我在windows power shell和命令提示符下尝试了此命令,但它显示消息“这次Spring出乎意料” 我正在使用Windows7。命令提示的内容如下: Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights

提供了一个运行应用程序的演示示例。/mvnw spring boot:run命令位于“complete”文件夹/目录中,在我们使用构建框架maven的情况下。我在windows power shell和命令提示符下尝试了此命令,但它显示消息“这次Spring出乎意料”

我正在使用Windows7。命令提示的内容如下:

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
E:\MyLearnings(Tech Front)\Spring Boot Learning\gs-spring-boot-master\gs-spring-boot-master\complete>mvnw spring-boot:run
\Spring was unexpected at this time.
    
E:\MyLearnings(Tech Front)\Spring Boot Learning\gs-spring-boot-master\gs-spring-boot-master\complete>./mvnw spring-boot:run
'.' is not recognized as an internal or external command, operable program or batch file.
    
E:\MyLearnings(Tech Front)\Spring Boot Learning\gs-spring-boot-master\gs-spring-boot-master\complete>.\mvnw spring-boot:run
\Spring was unexpected at this time.
    
E:\MyLearnings(Tech Front)\Spring Boot Learning\gs-spring-boot-master\gs-spring-boot-master\complete>

我可以在以下命令的帮助下运行应用程序:

mvn spring-boot:run

我怀疑问题是由于您在名称中包含空格的目录中运行命令造成的。尝试从不包含空格的目录运行它。这似乎是maven路径的问题。请参阅本帖
mvn spring-boot:run