在idea中删除.Groovy即可,但是不知为何,再添加上去,又好了 转载: idea报错Cannot compile Groovy files: no Groovy library is defined for module X'X