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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -