标签:
import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource;
some.properties 位于classes 下
Resource res = new ClassPathResource("some.properties"); System.out.println("res:"+res.getURI());
标签:
原文地址:http://www.cnblogs.com/zno2/p/5102793.html