System.out.println(Server.class.getProtectionDomain().getCodeSource().getLocation());
--返回file:/F:/workspace/MQ/WebRoot/WEB-INF/classes/
System.out.println(new File(Server.class.getProtectionDomain().getCodeSource().getLocation().toURI()).isDirectory());