idea read xml

Idea problem

System.out.println(PapiExample.class.getClassLoader().getResource("").toString());

Out: file:/D:/IDEA_Project/papi/out/production/papi/

But idea actually run read xml is up.

Directory is Follow:

OR Follows:

configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "resources/directory.xml");

原文地址:https://www.cnblogs.com/baoguo/p/1385745.html