java - 将Spring Boot从2.2.2升级到2.3.2时出现错误

标签 java spring spring-boot gradle spring-boot-2

我正在从Spring Boot 2.2.2升级到2.3.2.RELEASE,并得到以下错误。我确定它与已经在使用的端口无关。另外,根据spring boot 2.3.2,我将日志记录从logging.file更改为logging.file.name。

WARN  [framework_5_5][traceId:][spanId:][parentSpanId:][spanExportable:][bt:@build.time@][cbn:@current.branch@][main][2020-08-20 15:22:29,317]- org.springframework.context.support.AbstractApplicationContext.refresh:Line 559 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is org.springframework.boot.web.embedded.tomcat.ConnectorStartFailedException: Connector configured to listen on port 10090 failed to start
INFO  [framework_5_5][traceId:][spanId:][parentSpanId:][spanExportable:][bt:@build.time@][cbn:@current.branch@][main][2020-08-20 15:22:29,321]- org.springframework.scheduling.concurrent.ExecutorConfigurationSupport.shutdown:Line 218 - Shutting down ExecutorService 'applicationTaskExecutor'
INFO  [framework_5_5][traceId:][spanId:][parentSpanId:][spanExportable:][bt:@build.time@][cbn:@current.branch@][main][2020-08-20 15:22:29,324]- com.zaxxer.hikari.HikariDataSource.close:Line 350 - HikariPool-1 - Shutdown initiated...
INFO  [framework_5_5][traceId:][spanId:][parentSpanId:][spanExportable:][bt:@build.time@][cbn:@current.branch@][main][2020-08-20 15:22:29,329]- com.zaxxer.hikari.HikariDataSource.close:Line 352 - HikariPool-1 - Shutdown completed.
INFO  [framework_5_5][traceId:][spanId:][parentSpanId:][spanExportable:][bt:@build.time@][cbn:@current.branch@][main][2020-08-20 15:22:29,329]- com.zaxxer.hikari.HikariDataSource.close:Line 350 - HikariPool-2 - Shutdown initiated...
INFO  [framework_5_5][traceId:][spanId:][parentSpanId:][spanExportable:][bt:@build.time@][cbn:@current.branch@][main][2020-08-20 15:22:29,337]- com.zaxxer.hikari.HikariDataSource.close:Line 352 - HikariPool-2 - Shutdown completed.
INFO  [framework_5_5][traceId:][spanId:][parentSpanId:][spanExportable:][bt:@build.time@][cbn:@current.branch@][main][2020-08-20 15:22:29,353]- org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener.logMessage:Line 136 - 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
ERROR [framework_5_5][traceId:][spanId:][parentSpanId:][spanExportable:][bt:@build.time@][cbn:@current.branch@][main][2020-08-13 19:20:31,769]- org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter.report:Line 40 - 
***************************
APPLICATION FAILED TO START
***************************

Description:

The Tomcat connector configured to listen on port 10090 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's listening on port 10090, or configure this application to listen on another port.

最佳答案

configure this application to listen on another port.当应用程序已经在运行时,会发生上述错误。
如果您使用的是Eclipse或Intellij,则可以重新启动并运行该应用程序。

关于java - 将Spring Boot从2.2.2升级到2.3.2时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63397085/

相关文章:

java - Spring @Autowiring,如何使用对象工厂来选择实现?

spring - 如何在 Spring Boot 中更改 Multipart 文件的最大大小?

java - 为 Oozie Java 操作的类路径中的所有 jar 捕获组、工件和版本

java - Try 和 Catch 循环

java - 整数除法 : Why is the result of 1/3 == 0?

java - 同时运行两个版本的java

c# - 如何检测用户何时开始在浏览器中下载文件?

java - Spring如何与Hibernate集成

spring - 如何在 Redis session 中使用 Spring Boot 身份验证

tomcat - Gradle 在 Bamboo 服务器中构建缓慢