I want to send the full track to view and display like http://localhost:8080/fileaName. Then I push this link and save file on my disk.
String fileDownloadUri = ServletUriComponentsBuilder.fromCurrentContextPath()
.path("src/main/resources/temp/")
.path(fileName)
.toUriString();
model.addAttribute("fileDownloadUri", fileDownloadUri);
Now I can't see the link on the page
<span th:href="${fileDownloadUri}"></span>