grails - Using a variable from bootstrap.groovy file in config.groovy -
i initializing variable in bootstrap.groovy file
def loglocation = tunable.findbytunatag("loglocation")
here tunable
domain class.
i want use variable loglocation
in config.groovy file.how achieve this? .thanks in advance
bootstrap executed after config read. can change config bootstrap:
`grailsapplication.config.loglocation = ...`
Comments
Post a Comment