- SpringBoot报错BeanCreationExceptio
- 分享一个shiro中遇到的小问题:没有k用户的问题
- because its MIME type ('applicat
- Access denied for user '***'@'lo
- SpringBoot整合Elasticsearch报错avail
- SpringBoot- springboot集成Redis出现报
- springdatajpa Index column size
- 通过Jedis客户端连接不到redis
- Failed to configure a DataSource
- springboot报错org.yaml.snakeyaml.s
SpringBoot报错BeanCreationException: Error creating bean with name 'entityManagerFactory解决办法
今天用SpringBoot开发restful接口的时候遇到如下问题,检查了半天才发现是包引入错了,一百度网上错的人还不少,可能原因主要是在给实体类做注解的时候输入id,intellij idea有可能会导入import org.springframework.data.annotation.Id;
正确的应该是import javax.persistence.Id;
,小错误但是不好发现,记录一下。
网友评论