开发者社区> 问答> 正文

cannot a instance from an abstract inter?报错

BootStrap.goory中

def init = { servletContext ->
    def category = new Category(categoryName:'Book)
}

结果在generate-all的时候,报错:cannot a instance from an abstract interface 'groovy.lang.category'

这是什么原因呢

展开
收起
爱吃鱼的程序员 2020-06-12 10:53:15 424 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    加上包名

    2020-06-12 10:53:34
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
DYNAMIC ON-THE-FLY MODIFICATIO 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载