Ошибка возврата при переходе на Java 11 - PullRequest
0 голосов
/ 18 июня 2020

Я сейчас перехожу с Java 8 на Java 11. Я использую Spring boot 2.2.7 и Maven 3.6.1. Мне удалось создать свой проект без ошибок, но когда я попытался запустить свое приложение, он выдает ошибки логбэка:

23:54:33,407 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
23:54:33,408 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
23:54:33,408 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/workspace/applicationtest/target/classes/logback.xml]
23:54:33,410 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
23:54:33,410 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/rock/.m2/repository/net/sourceforge/tess4j/tess4j/3.2.1/tess4j-3.2.1.jar!/logback.xml]
23:54:33,410 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/C:/workspace/applicationtest/target/classes/logback.xml]
23:54:33,509 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
23:54:33,517 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@5:38 - no applicable action for [springProperty], current ElementPath  is [[configuration][springProperty]]
23:54:33,517 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@7:30 - no applicable action for [springProfile], current ElementPath  is [[configuration][springProfile]]
23:54:33,517 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@8:58 - no applicable action for [springProperty], current ElementPath  is [[configuration][springProfile][springProperty]]

Это часть моего pom, в которой ведется журнал. xml

<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>

Он работал нормально, когда я все еще использовал Java 8. Я также пытался исключить логбэк, но все равно не повезло. Я использовал jre, созданный с помощью jlink.

Есть предложения, как я могу решить эту проблему?

...