Entity 类中加了@Id 注解后仍然出现org.hibernate.AnnotationException: No identifier specified for entity 错误
利用Spring-data-jpa 开发,测试时报了以下错误,关键信息用红色标注了出来java.lang.IllegalStateException: Failed to load ApplicationContextat org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadC...
原创
2019-05-23 09:13:14 ·
207 阅读 ·
0 评论