今天在用grails时出现一个奇怪的错误
3: Invalid duplicate class definition of class Resource : The source D:\test\grails\projects\productknowlege\grails-app\domain\org\security\Resource.groovy contains at least two definitions of the class Resource.
One of the classes is an explicit generated class using the class statement, the other is a class generated from the script body based on the file name. Solutions are to change the file name or to change the class name.
@ line 3, column 1.
class Resource {
^
1 error
查了半天外国网站,最后才知道是UE保存时,编码设置的问题,重新创建了一下文件就OK了。