spring开发总结

  后端读取本地文件: 使用org.springframework.core.io.ClassPathResource 读取相对classes文件夹下的文件 Resource r1 = new ClassPathResource("类路径/conf/a.txt"); InputStream i1 = r1.getInputStream(); org.springframework.core.io
相关文章
相关标签/搜索