Spring boot spring启动:在ctrl-c之后运行失败

Spring boot spring启动:在ctrl-c之后运行失败,spring-boot,Spring Boot,我正在尝试运行spring启动应用程序。然而,在我当前的设置中,我不断地出现错误 爪哇8 Maven 3.6.1 已检查环境变量 从SpringBoot的新版本2.2.1开始,我一直在关闭内置tomcat时遇到相同的错误 我有一个示例Spring引导应用程序,它似乎无法正常运行。从spring初始化器中获取了一个干净的版本 [INFO] ------------------------------------------------------------------------ [INFO

我正在尝试运行spring启动应用程序。然而,在我当前的设置中,我不断地出现错误

  • 爪哇8
  • Maven 3.6.1
  • 已检查环境变量
从SpringBoot的新版本2.2.1开始,我一直在关闭内置tomcat时遇到相同的错误

我有一个示例Spring引导应用程序,它似乎无法正常运行。从spring初始化器中获取了一个干净的版本

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.547 s
[INFO] Finished at: 2019-11-07T22:28:54+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.1.RELEASE:run (default-cli) on project java13-app: Application finished with exit code: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
当我回到Spring 2.1.10时,我得到以下输出:

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::       (v2.1.10.RELEASE)
2019-11-07 22:38:33.194  INFO 2572 --- [           main] test.Application                         : Starting Application on DP-BTO-Tom with PID 2572 (Y:\tbrx\java-13-spring-boot\target\classes started by Tom in Y:\tbrx\java-13-spring-boot)
2019-11-07 22:38:33.196  INFO 2572 --- [           main] test.Application                         : No active profile set, falling back to default profiles: default
2019-11-07 22:38:33.966  INFO 2572 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2019-11-07 22:38:33.986  INFO 2572 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-11-07 22:38:33.986  INFO 2572 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.27]
2019-11-07 22:38:34.053  INFO 2572 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-11-07 22:38:34.054  INFO 2572 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 832 ms
2019-11-07 22:38:34.221  INFO 2572 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2019-11-07 22:38:34.361  INFO 2572 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2019-11-07 22:38:34.364  INFO 2572 --- [           main] test.Application                         : Started Application in 1.542 seconds (JVM running for 4.547)
2019-11-07 22:38:35.652  INFO 2572 --- [       Thread-5] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'applicationTaskExecutor'
[Terminate batch job (Y/N)? y

而不是构建失败。

在Spring Boot-2.2.1中作为错误被询问、修复并关闭


能否请您发布
$./mvnw-X clean package
的put-put以及提供的详细信息?很难提供任何解决方案。应要求:)