![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习笔记
jzx-sdjz
菜鸟一个
展开
-
java读取resources目录和同级目录文件
1.读取resource目录下的文件/** * 读取resource中的文件 */ private static void readCurrent() { try { InputStream in = FilePath.class.getResourceAsStream("/a.properties"); Properties properties = new Properties(); .原创 2020-10-09 15:45:42 · 2066 阅读 · 0 评论 -
个人问题及解决方法
1.maven总是改变jdk版本用maven总是编译变成1.5,说是默认的,搜了一下,在<properties>中添加maven编译版本就行。 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> ...原创 2019-07-14 10:51:34 · 189 阅读 · 0 评论