摘要:
package com.xiangwen; import javax.imageio.ImageIO; import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; import java.io.IOExc 阅读全文
摘要:
1、非spring项目和普通项目通用方法: String path = Thread.currentThread().getContextClassLoader().getResource("cc/aa.txt").getPath(); 2、spring项目可以用spirng自带的ResourceU 阅读全文