Last active
November 18, 2017 11:30
-
-
Save dellermann/14646b1928046dd7e174 to your computer and use it in GitHub Desktop.
Display all configured Spring beans in a Grails application.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
println 'Defined beans:' | |
org.springframework.context.ApplicationContext ctx = grailsApplication.mainContext | |
ctx.beanDefinitionNames.sort().each { println "${it} (${ctx.getType(it)?.name})" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example, SpringCRM 2.1.0 outputs the following list: