At least one JPA metamodel must be present!

it2022-05-06  10

使用spring jpa是一直报这个错,找了两天网上没有找到答案,最后发现时配置配错了,如下:

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> <version>RELEASE</version></dependency>改成 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId></dependency>就可以了。指定RELEASE有依赖的hibernate版本冲突

转载于:https://www.cnblogs.com/guwan/p/7901535.html


最新回复(0)