Replies: 3 comments
-
I think I have got this working by defining a JteConfiguration class which uses the ResourceCodeResolver instead of the DirectoryCodeResolver:
In my application yml i think added:
I then created two controllers one in the app and one in the jetset module. I then created jte templates in Can anyone confirm is this is the correct approach? |
Beta Was this translation helpful? Give feedback.
-
I have sample problem on my project with gradle-multi-module |
Beta Was this translation helpful? Give feedback.
-
I had a similar problem which was resolved by changing the
Given the structure above, the
in order the JTE to find the templates. Although, in hindsight, this was obvious, it took a good bit of tracing in the debugger to understand what was causing the 404/TemplateNotFound exceptions. Changing the As an IMHO note, I should say this may only be true in development/local usage. The root of how templates are resolved may change once the |
Beta Was this translation helpful? Give feedback.
-
Hello everyone!
I have just started working on a Spring Boot multi-module application, and I want to integrate JTE templates into it. I have previously used JTE in regular applications and enjoy using it, however I am running into some challenges implementing it as part of this multi-module project. Below is the relevant part of my build.gradle file:
This is my basic controller:
As you can see I have included the JTE & Spring Boot starter dependancy in my ‘jetset’ module, however when I create and attempt to render a template I am presented with a persistant 404 error. I have tried all combinations to attempt to debug, such as creating the templates in the app directly, moving the dependancies around into the app, but have still not found a way to render the templates. I have a controller in both the module and app but neither of them are able to render a template.
Any help at all, or a pointer to it being done somewhere would be much appreciated. Thank you in advance!!
Beta Was this translation helpful? Give feedback.
All reactions