diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2023-09-27 18:06:56 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2023-09-27 18:06:56 +0200 |
commit | be4764837a880d193de52d42f428dfb46f0c7bf9 (patch) | |
tree | bdf6abab7234b7b77f5a7292165b173cc291efb8 /examples | |
parent | de94ccc360ac549453e592af81e2aaa08b4fa0a8 (diff) |
fix(docs): Deal with TomcatURLStreamHandlerFactory conflict.
Change-Id: Iab1bf00ad122464b8c770301d2c33406ece072e0
Diffstat (limited to 'examples')
-rw-r--r-- | examples/spring-boot/pom.xml | 5 | ||||
-rw-r--r-- | examples/spring-boot/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/Application.java | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/examples/spring-boot/pom.xml b/examples/spring-boot/pom.xml index f786b12..9b26ee3 100644 --- a/examples/spring-boot/pom.xml +++ b/examples/spring-boot/pom.xml @@ -70,6 +70,11 @@ SPDX-License-Identifier: GPL-3.0-or-later <version>3.0.2.Final</version> </dependency> <dependency> + <groupId>org.jboss.logmanager</groupId> + <artifactId>jboss-logmanager-embedded</artifactId> + <version>1.2.0.Final</version> + </dependency> + <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> diff --git a/examples/spring-boot/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/Application.java b/examples/spring-boot/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/Application.java index d7be322..9a4bdee 100644 --- a/examples/spring-boot/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/Application.java +++ b/examples/spring-boot/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/Application.java @@ -4,12 +4,17 @@ package eu.mulk.quarkus.googlecloud.jsonlogging.example; +import org.apache.catalina.webresources.TomcatURLStreamHandlerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Application { + static { + TomcatURLStreamHandlerFactory.disable(); + } + public static void main(String[] args) { SpringApplication.run(Application.class, args); } |