Java Properties类加载配置文件转义问题

场景: 配置文件config.properties 配置项cfg.regexp=\d+\t 加载配置文件代码 InputStream ins = PropManager.class.getResourceAsStream("/config.properties"); prop.load(ins); 现象: 打印cfg.regexp的值输出为"d+ ",而不是指望的"\d+\t" 缘由: 看了下代码
相关文章
相关标签/搜索