Read file from resources folder in Spring Boot

后端 未结 12 1121
盖世英雄少女心
盖世英雄少女心 2020-11-28 06:50

I\'m using Spring Boot and json-schema-validator. I\'m trying to read a file called jsonschema.json from the resources folder. I\'ve t

12条回答
  •  盖世英雄少女心
    2020-11-28 07:38

    i think the problem lies within the space in the folder-name where your project is placed. /home/user/Dev/Java/Java%20Programs/SystemRoutines/target/classes/jsonschema.json

    there is space between Java Programs.Renaming the folder name should make it work

提交回复
热议问题