博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Use ResourceBundle read properties file.

Posted on 2013-10-23 20:13  钟悍  阅读(176)  评论(0编辑  收藏  举报
String key="key"
ResourceBundle bundle = ResourceBundle.getBundle("com.karl.com.example");
String value =  bundle.getString(key);

resource file:  example.properties store in  package com.karl.com.