diff --git a/packages/java/tests/spring/react-grid-test/src/main/java/com/vaadin/hilla/test/reactgrid/Application.java b/packages/java/tests/spring/react-grid-test/src/main/java/com/vaadin/hilla/test/reactgrid/Application.java index 07389166e3..f8b693e6e7 100644 --- a/packages/java/tests/spring/react-grid-test/src/main/java/com/vaadin/hilla/test/reactgrid/Application.java +++ b/packages/java/tests/spring/react-grid-test/src/main/java/com/vaadin/hilla/test/reactgrid/Application.java @@ -1,7 +1,10 @@ package com.vaadin.hilla.test.reactgrid; +import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Primary; import com.vaadin.flow.component.page.AppShellConfigurator; import com.vaadin.flow.theme.Theme; @@ -13,4 +16,13 @@ public class Application implements AppShellConfigurator { public static void main(String[] args) { SpringApplication.run(Application.class, args); } + + @Bean + @Primary + ObjectMapper myObjectMapper() { + // This is only to test that you can have a custom object mapper without + // causing problems for Hilla + return new ObjectMapper(); + } + }