-
Notifications
You must be signed in to change notification settings - Fork 40.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid reference to RequestParameters in Freemarker after upgrade #34733
Comments
Which version of Spring Boot were you using before the upgrade? As far as I can remember, we haven't made many, if any, recent changes to our FreeMarker support. Once possibility is this change in Spring Framework. |
I upgraded from 2.7.10. If I go back to it, it works again. |
Sorry, I should have linked more precisely. I meant the change that I described in spring-projects/spring-framework#29787 (comment). Due to spring-projects/spring-framework@d84ca2b, there's no longer a |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as resolved.
This comment was marked as resolved.
I had this problem upgrading an old project from Spring 3 to Spring 6, by now we have no time to replace the technology used to render the views, so my solution was adding it as a new model attribute of FreeMarker. Replacing:
By, in backend:
and in frontend:
|
I just upgraded my app to Spring Boot 3.0.5 and there seems to be something broken with
spring-boot-starter-freemarker
.In my Freemarker template, I have this line that used to work before the upgrade:
<div>${RequestParameters.myParam!}</div>
After the upgrade, I get this error when loading the template:
It seems like
RequestParameters
is not available anymore.Is there a fix in sight for this?
Any workarounds?
Thanks!
The text was updated successfully, but these errors were encountered: