I have created json file inside resources dir in spring boot application. File path is like: resources/recipe/recipe.json When i use relative path, it won't be taken by java compiler so i'll get this exception. java.io.FileNotFoundException: recipe/recipe.json (No such file or directory). But this path is identified by IDE. if i click the path, it will be redirected to json file. Can anyone tell what the issue is ?
(FYI: absolute path is working perfectly)