diff --git a/README.md b/README.md index 513db74..c9a413c 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Creates the bean when Profile A **OR** B is active. @Bean @Profile("A", "B") public ExampleBean exampleBean() { - return ExampleBean(); + return new ExampleBean(); } ``` @@ -25,7 +25,7 @@ Creates the bean only when Profile A **AND** B are active. @Bean @ConditionalOnProfiles("A","B") public ExampleBean exampleBean() { - return ExampleBean(); + return new ExampleBean(); } ```