title: Importing an externalised Groovy DSL Spring bean configuration into Grails resources.groovy
body: <p>I have a Grails application with Spring beans configured in my resources.groovy file. I would like to know if it is possible to import my bean configuration from an external source on the file system but still keep them in the Groovy DSL style.</p>
  
  <p>I am aware the it is possible to import a bean config from an XML file as detailed in this post "<a href="https://stackoverflow.com/questions/9823998/is-it-possible-to-import-an-external-bean-configuration-xml-file-into-resources">Is it possible to import an external bean configuration xml file into resources.groovy?</a>" but would like to know how to do this with Groovy DSL bean config.</p>