build.gradle
我创建了一个简单的 Grails 3.0.1 应用程序,并通过导入文件将其加载到 IntelliJ IDEA 中。通过 IDEA 运行应用程序的推荐方法是执行文件夹Application.groovy
中的类。init
这样做启动了应用程序,我能够浏览到“欢迎使用 Grails”页面,但是当我尝试访问任何控制器时,我得到:
This page contains the following errors:
error on line 7 at column 12: Opening and ending tag mismatch: meta line 0 and head
Below is a rendering of the page up to the first error.
default.list.label
在浏览器中。我有两个域类并使用generate-all
.
我认为 <gsp> 标签中的某些东西失败了,但我不知道是什么。
如果我使用 启动应用程序grails run-app
,则视图可以正常工作,因此这是Application.groovy
.