SpringBoot整合SpringJPA时,findOne报错

这个时候你应该看看SpringBoot的版本,我刚才是用的2.0以上的版本,findOne就是打死找不到,后来想到了会不会是版本问题,结果将版本改为

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.10.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

完美解决~~

猜你喜欢

转载自blog.csdn.net/Chen_leilei/article/details/82851253
今日推荐