Class file not found in IntelliJ

前端 未结 8 1414
孤独总比滥情好
孤独总比滥情好 2020-12-15 17:59

In IntelliJ I get this weird error when I try to compile.

Cannot find annotation method \'cascade()\' in type \'javax.persistence.ManyToOne\': class file for         


        
8条回答
  •  悲&欢浪女
    2020-12-15 18:39

    I was getting the class not found error message when trying to execute a .groovy test class, which referenced a .groovy file (located in the root of the source directory of a submodule - i.e. no packages).

    Moving the source file .groovy into a package, fixed the issue for me.

    Move:

    src/main/groovy/RunMe.groovy
    

    to

    src/main/groovy/somePackage/RunMe.groovy
    

提交回复
热议问题