先新建一个spring boot工程,导入jpa依赖
在pom.xml中显示
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency>
IDEA spring boot jpa简单案例
原文:https://www.cnblogs.com/IGDR/p/8966746.html