摘要:
配置文件的路径为根路径: //获取该配置文件的相对路径 String path = SysTemplate.class.getClassLoader().getResource("generator.properties").getPath(); File file = new File(path) 阅读全文
posted @ 2018-02-06 11:44
流白的日记
阅读(94)
评论(0)
推荐(0)
摘要:
1、将个位数以零补位 @Test public void Test3() { for (int i = 0; i < 11; i++) { String format = String.format("%1$02d", i); System.out.println(format); } } 输出结果 阅读全文
posted @ 2018-02-06 09:46
流白的日记
阅读(100)
评论(0)
推荐(0)
浙公网安备 33010602011771号