Skip to content

Commit

Permalink
apply environment customizations
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Dec 10, 2020
1 parent 4667cfe commit 3a1c8ee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ protected ConfigurableApplicationContext createApplicationContext() {
ClassUtils.forName("com.fasterxml.jackson.databind.ObjectMapper", getClassLoader()).ifPresent(beanExcludes::add);
ApplicationContext micronautContext = new MicronautGrailsAppContext(micronautConfiguration);

configuration.applyToEnvironment(micronautContext.getEnvironment());

micronautContext.getEnvironment().addPropertySource("grails-config", Collections.singletonMap(MicronautBeanFactoryConfiguration.PREFIX + ".bean-excludes", beanExcludes));
micronautContext.registerSingleton(Configuration.class, configuration);

Expand Down

0 comments on commit 3a1c8ee

Please sign in to comment.