gpt4 book ai didi

java - ./mvnw spring-boot :run command displays "Spring was unexpected this time" message

转载 作者:行者123 更新时间:2023-12-03 16:46:44 25 4
gpt4 key购买 nike

Spring Boot guide给出了一个演示示例,在其中运行应用程序的示例。在我们使用构建框架maven的情况下,将使用'complete'文件夹/目录中的./mvnw spring-boot:run命令。我从Windows Power Shell和命令提示符处尝试了此命令,但显示消息“这次 Spring 出乎意料”。

E:
├───src
├───main
│ ├───java
│ │ └───com
│ │ └───example
│ │ └───demo
│ └───resources
└───test
└───java
└───com
└───example
└───demo
我正在使用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

关于java - ./mvnw spring-boot :run command displays "Spring was unexpected this time" message,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66509025/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com