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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

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

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -