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/spring-boot/src/main/java | |
parent | de94ccc360ac549453e592af81e2aaa08b4fa0a8 (diff) |
fix(docs): Deal with TomcatURLStreamHandlerFactory conflict.
Change-Id: Iab1bf00ad122464b8c770301d2c33406ece072e0
Diffstat (limited to 'examples/spring-boot/src/main/java')
-rw-r--r-- | examples/spring-boot/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/Application.java | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |