Skip to content

Commit

Permalink
Merge pull request #11 from agorapulse/fix/apply-env-customisations
Browse files Browse the repository at this point in the history
apply environment customisations
  • Loading branch information
musketyr committed Dec 10, 2020
2 parents e49eba1 + 3a1c8ee commit 0eb14fc
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 0eb14fc

Please sign in to comment.