maven+scala项目加载.properties资源文件

val absoPath = Thread. currentThread().getContextClassLoader().getResource(“资源文件路径test resources root下”).getPath var fileStream = new FileInputStream(absoPath) properties.load(fileStream) 注:必须在pom.xml
相关文章
相关标签/搜索