0
Hello
I have some documents saved in the database (with equivalent templates, they are not .txt files or anything), I would like to create . txt and . Md from the database, searching for the template, extracting the title and content to form a file and adding an extension, and then offering that file for download.
I find many examples of file downloads, this would only be a part, the first would be to generate a custom file only when requested by the client.
Where I could find examples based on this?
Thank you.
Document.java
...
@Id
@GeneratedValue
private Long id;
private String title;
private String description;
}