Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- committed Jan 10, 2025
1 parent f5a3f9e commit 1ea8972
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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();
}

}

0 comments on commit 1ea8972

Please sign in to comment.