From be4764837a880d193de52d42f428dfb46f0c7bf9 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Wed, 27 Sep 2023 18:06:56 +0200 Subject: fix(docs): Deal with TomcatURLStreamHandlerFactory conflict. Change-Id: Iab1bf00ad122464b8c770301d2c33406ece072e0 --- .../eu/mulk/quarkus/googlecloud/jsonlogging/example/Application.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples/spring-boot/src/main') 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); } -- cgit v1.2.3