Class file not found in IntelliJ

前端 未结 8 1374
孤独总比滥情好
孤独总比滥情好 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:28

    In intelliJ I got this problem when I built (ctrl+shift+F9) at the file level.

    The reason is, I had changes in other files in the same maven project, that were not getting picked.

    I solved it by building at the project level (Select the Maven project in intellij and press ctrl+shift+F9)

提交回复
热议问题