ResourceBundle resource = ResourceBundle.getBundle("shopxx");//不要加.properties后缀,我加了报错
resource.getString("business.type.oneURL");//获取business.type.oneURL的值
整合成一条代码
ResourceBundle resource = ResourceBundle.getBundle("shopxx").getString("business.type.oneURL");//获取business.type.oneURL的值
导包
import java.util.ResourceBundle;