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

Popular posts from this blog

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

json - Zend error Connection -

javascript - Trigger mouseenter when an animated element touches mouse -