Load spring beans from custom groovy files in grails app

前端 未结 4 1986
天命终不由人
天命终不由人 2021-01-17 23:46

Trying to load spring beans from custom groovy file in Grails 2.3.7. I know this question has been asked before, but after hours of searching, I\'m unable to fi

4条回答
  •  迷失自我
    2021-01-18 00:17

    I had the same problem with custom XML files in Grails 2.1.2.

    Having XML resources in grails-app/conf/spring didn't work in production environment AFAIR.

    To make it working both in development and production environments I finally put the resources into src/java. I think you can achieve the same result by putting your groovy files into src/groovy.

提交回复
热议问题