在使用了好多种方法都没有解决, 这种方法试了也没有解决 在报错的实体类上加上了 @Proxy(lazy = false) 问题解决 转载https://blog.csdn.net/T_blackcat/article/details/86592967