From 293b2d3fec10a89ed485081826f1889b29bfe7e9 Mon Sep 17 00:00:00 2001 From: Eric Deandrea Date: Wed, 4 Dec 2024 12:44:20 -0500 Subject: [PATCH] Use reflection-free serializers (#1320) Signed-off-by: Eric Deandrea --- event-statistics/src/main/resources/application.properties | 1 + rest-fights/src/main/resources/application.properties | 1 + rest-heroes/src/main/resources/application.yml | 4 ++++ rest-narration/src/main/resources/application.properties | 1 + rest-villains/src/main/resources/application.properties | 1 + ui-super-heroes/src/main/resources/application.properties | 1 + 6 files changed, 9 insertions(+) diff --git a/event-statistics/src/main/resources/application.properties b/event-statistics/src/main/resources/application.properties index 2e2737b72..72de529e0 100644 --- a/event-statistics/src/main/resources/application.properties +++ b/event-statistics/src/main/resources/application.properties @@ -4,6 +4,7 @@ quarkus.banner.path=banner.txt quarkus.http.port=8085 quarkus.http.test-port=0 quarkus.jackson.serialization-inclusion=non-empty +quarkus.rest.jackson.optimization.enable-reflection-free-serializers=true quarkus.websockets-next.server.auto-ping-interval=1m ## Kafka configuration diff --git a/rest-fights/src/main/resources/application.properties b/rest-fights/src/main/resources/application.properties index 2deca60ee..b095cb433 100644 --- a/rest-fights/src/main/resources/application.properties +++ b/rest-fights/src/main/resources/application.properties @@ -10,6 +10,7 @@ quarkus.generate-code.grpc.descriptor-set.name=locationservice-v1.dsc quarkus.http.port=8082 quarkus.jackson.serialization-inclusion=non-empty quarkus.http.test-port=0 +quarkus.rest.jackson.optimization.enable-reflection-free-serializers=true ## Mongo quarkus.mongodb.metrics.enabled=true diff --git a/rest-heroes/src/main/resources/application.yml b/rest-heroes/src/main/resources/application.yml index 5e7e9b82c..ce6067078 100644 --- a/rest-heroes/src/main/resources/application.yml +++ b/rest-heroes/src/main/resources/application.yml @@ -30,6 +30,10 @@ quarkus: test-port: 0 jackson: serialization-inclusion: non-empty + rest: + jackson: + optimization: + enable-reflection-free-serializers: true smallrye-openapi: info-title: Hero API info-description: This API allows CRUD operations on a hero diff --git a/rest-narration/src/main/resources/application.properties b/rest-narration/src/main/resources/application.properties index e28563ada..634e024ef 100644 --- a/rest-narration/src/main/resources/application.properties +++ b/rest-narration/src/main/resources/application.properties @@ -92,6 +92,7 @@ quarkus.langchain4j.azure-openai.dalle3.max-retries=${quarkus.langchain4j.azure- quarkus.http.port=8087 quarkus.http.test-port=0 quarkus.jackson.serialization-inclusion=non-empty +quarkus.rest.jackson.optimization.enable-reflection-free-serializers=true ## Logging configuration quarkus.log.category."io.quarkus.sample.superheroes".level=DEBUG diff --git a/rest-villains/src/main/resources/application.properties b/rest-villains/src/main/resources/application.properties index e7b33ec8a..ed76f70cb 100644 --- a/rest-villains/src/main/resources/application.properties +++ b/rest-villains/src/main/resources/application.properties @@ -5,6 +5,7 @@ quarkus.banner.path=banner.txt quarkus.http.port=8084 quarkus.http.test-port=0 quarkus.jackson.serialization-inclusion=non-empty +quarkus.rest.jackson.optimization.enable-reflection-free-serializers=true # drop and create the database at startup (use `update` to only update the schema or 'validate' to only validate the schema) quarkus.hibernate-orm.database.generation=drop-and-create diff --git a/ui-super-heroes/src/main/resources/application.properties b/ui-super-heroes/src/main/resources/application.properties index 93f314094..b7f62628b 100644 --- a/ui-super-heroes/src/main/resources/application.properties +++ b/ui-super-heroes/src/main/resources/application.properties @@ -2,6 +2,7 @@ quarkus.application.name=ui-super-heroes quarkus.banner.path=banner.txt quarkus.http.test-port=0 +quarkus.rest.jackson.optimization.enable-reflection-free-serializers=true quarkus.quinoa.package-manager-install=true quarkus.quinoa.package-manager-install.node-version=20.18.0