Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I created a library which, in combination with thymeleaf (without spring), deals with sending e-mails.
I add this library to my project dependencies and there is a problem - the library does not use the html template from the project's "resources / templates",it uses template from library resources.
How can this be changed? Do you have a sample solution?
I want this library to take html template for email from resources/templates of project that is using this library.
I tried with setting prefix to ClassLoaderTemplateResolver - every version of file:src/main/resources/templates/ and classpath:src/main/resources/templates/ and so on, and so on.
Which template resolver I should use and how to set it proper? Ty in advance for help!

You must be logged in to vote

Replies: 1 comment

Comment options

This question looks exactly the same as #852, which has an answer in it there.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.