我想在 web.xml 中添加一个节点。
我尝试使用 webxml grails 插件,但看起来它无法管理节点。任何帮助或示例将不胜感激...
最佳答案
您可以使用自己的 web.xml
,包含您想要的任何内容。运行
> grails install-templates
并编辑 /src/templates/war/web.xml
文件(这是一个模板,所以不要删除现有的 Grails 代码)
参见 http://grails.org/doc/latest/ref/Command%20Line/install-templates.html
关于grails - 在 Grails 2.1 中将 <servlet> 添加到 web.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14042360/