当前位置:编程学习 > 网站相关 >>

play! scala 获取配置文件的内容

application.conf 配置文件内容
[plain]  
#custom config:  
mock.callBackURL="http://www.baidu.com"  
scala中获取
[plain]  
Play.current.configuration.getString("mock.callBackURL")  
 
view中获取
[java]  
@play.Play.application().configuration().getString("mock.callBackURL")  
 
补充:综合编程 , 其他综合 ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,