spring-boot: запустить не удалось после ctrl-c - PullRequest
0 голосов
/ 08 ноября 2019

Я пытаюсь запустить приложение с весенней загрузкой. Однако с моими текущими настройками я продолжаю получать ошибки.

  • Java 8
  • Maven 3.6.1
  • Переменные среды проверены

Какновой версии 2.2.1 Spring-Boot Я продолжаю получать ту же ошибку при закрытии встроенного tomcat.

У меня есть пример Spring-Boot Application, который я не могу запустить должным образом. Взял чистую версию из spring initializr.

[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, я получаю следующий вывод.: * 10101 *

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: 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

Вместо сбоя сборки.

1 Ответ

0 голосов
/ 10 ноября 2019

Запрошено, исправлено и закрыто как ошибка в Spring Boot - 2.2.1

https://github.com/spring-projects/spring-boot/issues/18936#event-2782909196

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...