From 83f43d73164502ec4e9b407ba8d01ffdcc3ec508 Mon Sep 17 00:00:00 2001 From: shyamz-22 Date: Sat, 6 Jan 2018 10:06:57 +0100 Subject: [PATCH] Fix code --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } ```