idea cannot resolve symbol '注解'

Idea 注解报错   

解决方法:

1.这个报错是因为hibernate没有导入 

2.在创建项目的时候勾选hibernate  

使用SpringBoot整合Hibernate在创建工程时要选择上JPA如下图所示 

原文地址:https://www.cnblogs.com/geekjsp/p/9355781.html