Ben Chuanlong Du's Blog

It is never too late to learn.

Get Resources in Java

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. getResource and getResourceAsStream tries to find files in the resources directory under src/main/resources or src/test/resources (depending on whether you are running the application or tests for the …