本文介绍了SpringBoot集成JPA的示例代码,分享给大家,具体如下:
1.创建新的maven项目
2. 添加必须的依赖
org.springframework.boot spring-boot-starter-parent 1.5.9.RELEASE org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-data-jpa mysql mysql-connector-java