spring開發總結

  後端讀取本地文件: 使用org.springframework.core.io.ClassPathResource 讀取相對classes文件夾下的文件 Resource r1 = new ClassPathResource("類路徑/conf/a.txt"); InputStream i1 = r1.getInputStream(); org.springframework.core.io
相關文章
相關標籤/搜索