(1)application.properties
...redis.ip=xxx.xxx.xxx.xxx...
(2)工具类
语言 主方法
282PP qE2nOWrHx5
2Dxy2
互联网创业iq730 OdU6721k04
import java.util.ResourceBundle;public class SystemConfig { static String configFile="application"; public static String getConfigInformation(String itemIndex){ try{ ResourceBundle resource = ResourceBundle.getBundle(configFile); return resource.getString(itemIndex); }catch (Exception e){ return ""; } }}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。