我在名为myPlugin的grails插件中有一个控制器myController和静态超文本标记语言myHtml.html。插件在我的名为myProject的项目中使用。我可以使用下面的代码访问控制器
http://localhost:8080/myProject/myController
但是,我不能访问统计HTML也不能使用
不是http://localhost:8080/myProject/myHtml.html也不是http://localhost:8080/myProject/static/plugins/myPlugin/myHtml.html不是http://localhost:8080/myProject/static/plugins/myPlugin-${plugin-version}/myHtml.html可以在插件中访问静态的HTML吗?
发布于 2014-01-08 19:12:32
如果您已经安装了插件,则应该在myProject\target\work\plugins\myPlugin\grails-app中名为"views“的文件夹中搜索该html
这就是你的html应该在的地方。
https://stackoverflow.com/questions/20993696
复制相似问题