Skip to content

Commit

Permalink
Resolve issue with primary bean resolution. Fixes grails/grails-core#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskleeh committed Oct 9, 2019
1 parent 52ae4ca commit 93c23ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.gradle
/build/
**/build
out/
.idea/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -800,4 +800,10 @@ public void registerBeanDefinition(String beanName, org.springframework.beans.fa
}
}
}

@Override
protected boolean isPrimary(String beanName, Object beanInstance) {
return beanName.endsWith("(Primary)");
}

}

0 comments on commit 93c23ad

Please sign in to comment.