maven项目获取resources资源文件
public class ClassResoucePath {
public static void main(String[] args) throws ClassNotFoundException, IOException {
//取当前类Class对象的三种方式
Class<ClassResoucePath> clazz1 = ClassResoucePath.class;
Class<? extends ClassResoucePath> clazz2 = new ClassResoucePath().getClass