grails控制台执行错误

时间:2010-08-06 15:58:38

标签: grails

环境

  • Grails 1.2.2
  • Ubuntu 9.10
  • IntelliJ 9.0.3

IntelliJ中的一切正常。当我在项目根目录中执行“grails console”时,我得到以下内容

Error executing script Console: groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed, SimpleTemplateScript1.groovy: 2: illegal string body character after dollar sign;                           
   solution: either escape a literal dollar sign "\$5" or bracket the value expression "${5}" @ line 2, column 10.                                                                                                  
1 error    

1 个答案:

答案 0 :(得分:1)

想出来!在脚手架目录中,文件“Controller.groovy”以某种方式进入了那里。删除此文件解决了该问题。获得的经验 - 当看到模板解析错误时,请仔细查看模板目录。

相关问题