- directory structure
- pom
- target
if you do not configure the build location under the resource folder, the test.toml is in target/classes, with the .class file
public class ReadToml {
public static void main(String[] args) {
String fileName = "/test.toml";
File file = new File(ReadToml.class.getResource(fileName).getFile());
//Toml toml = new Toml().read(file);
}
}
read it in the way above, and get the path of test.toml
now that build is configured, how can the file in the resources folder get its URL -!