Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamz-22 committed Jan 6, 2018
1 parent 45f0231 commit 83f43d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
```

Expand All @@ -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();
}
```

Expand Down

0 comments on commit 83f43d7

Please sign in to comment.