错误
在SpringBoot整合Spring Data JPA执行getOne()方法时报错误:
在application.yml中添加如下配置信息即可:
spring:
jpa:
properties:
hibernate:
enable_lazy_load_no_trans: true