File Sumber Daya Java
File file = new File(
getClass().getClassLoader().getResource("database.properties").getFile()
);
Curious Cat
File file = new File(
getClass().getClassLoader().getResource("database.properties").getFile()
);
InputStream inputStream = getClass()
.getClassLoader().getResourceAsStream("database.properties");
ClassLoader classloader = Thread.currentThread().getContextClassLoader();
InputStream is = classloader.getResourceAsStream("test.csv");