Replies: 1 comment
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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