import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
Resource classPathResource = new ClassPathResource("xxx");//src/main/resources/xxx
String path = classPathResource.getURL().getPath();
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
Resource classPathResource = new ClassPathResource("xxx");//src/main/resources/xxx
String path = classPathResource.getURL().getPath();
本文标题:maven 多moudle读取classpath下的文件,打成j
本文链接:https://www.haomeiwen.com/subject/ubozkqtx.html
网友评论