I cannot seem to get java to pick up a resource file I have. Whenever I use the code snippet below, the stream is always null.
public void getPage() throws IOException {
InputStream stream = Page.class.getResourceAsStream("/pages/test.html");
}
I am using JDK 12 and IntelliJ IDEA 2019.2.4. I've also tried "page/test.html" as the path.