更新时间:2023-11-19 19:50:10
您的 web.xml 可能仍包含对 sitemesh 过滤器的引用:
Your web.xml may still contain references to the sitemesh filter:
http://grails.org/doc/2.4.3/guide/upgradingFrom23.html一个>
Sitemesh servlet 过滤器已被移除,GSP 布局功能现在由 GrailsLayoutView 处理.
The Sitemesh servlet filter has been removed and the GSP layout feature is now handled by GrailsLayoutView.
将 src/templates 文件夹重命名为 src/templates-old,然后运行 grails install-templates.如果您之前自定义了 web.xml,则需要编辑生成的 web.xml 以再次进行这些更改.
Rename the src/templates folder to src/templates-old, then run grails install-templates. If you previously customised your web.xml, you will need to edit the generated web.xml to make these changes again.