Свойство из моего файла application.properties, которое я пытаюсь использовать. прочтение приведено ниже:
Код: Выделить всё
pont.email.template.location=templates/mailTemplate.html
Код: Выделить всё
@Value("${pont.email.template.location}")
private String templateLocation;
Код: Выделить всё
BufferedReader reader = new BufferedReader(new FileReader(templateLocation));
Но проблема в том, что приложение не может найти templates/mailTemplate.html.
Ошибка, которую я получаю, приведена ниже:
Код: Выделить всё
java.io.FileNotFoundException: templates/mailTemplate.html (No such file or directory)
Подробнее здесь: https://stackoverflow.com/questions/555 ... pring-boot
Мобильная версия