我按照位于http://www.grails.org/plugin/jquery的文档并使用 STS 中包含的 grails 命令行工具将 grails的 jquery 和 jquery-ui 插件安装到 SpringSource Tool Suite (STS-Eclipse) 中Eclipse如下:
grails> install-plugin jquery grails> install-plugin jquery-ui
根据文档,jquery 和 jquery-ui 都应该出现在我的项目 web-app/js 目录中,该目录位于我的 eclipse 工作区下,如下所示:
工作区-sts-2.3.3.M1//web-app/js
相反,这两个项目都安装在 ~/.grails/1.3.3/projects//plugins/ 中,并且永远不会复制到我的 web-app/js 目录中。
不用说我的 GSP 视图找不到 jquery 文件。我可能会手动复制文件;但是,它似乎违反了使用 grails install-plugin jquery 的惯例。
有没有其他人有类似的问题?有我应该设置的配置参数吗?
谢谢,阿什利