如图,这个红色波浪线不影响代码的运行,但是强迫症真的看的难受啊! 可以在Settings-Editor-Inspections-JPA-unresolved database references in annotation把√取消就可以了