scala - Defining an array in play's config file -
i didn't find information topic. there way define array in standard play config file app.config
have such values as?
application.secret="gk<9kcgmu@a62eyfcj;yz2nfna;4324/gfdg]afdsfds" application.langs="en" application.global=common.global
yes, possible , described here
in general, looking this:
my.setting="[value1,value2,value3]"
in code can access this:
play.current.configuration.getstringlist("my.setting") //returns option[java.util.list[string]]
you may use getlonglist
, getbooleanlist
, on.
Comments
Post a Comment