代码之家  ›  专栏  ›  技术社区  ›  Steve Wall

grails控制台执行错误

  •  1
  • Steve Wall  · 技术社区  · 15 年前

    环境

    • Ubuntu 9.10版
    • 智能9.0.3


    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 回复  |  直到 13 年前
        1
  •  1
  •   Steve Wall    15 年前

    我想出来了!在scaffolding目录中,文件“Controller.groovy”以某种方式出现了。删除此文件解决了问题。经验教训-当看到模板解析错误时,请仔细查看模板目录。

    推荐文章