报错 Inferred type 'S' for type parameter 'S' is not within its bound; 解决办法

报错 Inferred type 'S' for type parameter 'S' is not within its bound; 解决办法
2018年04月07日 13:27:27
阅读数:1615
Inferred type 'S' for type parameter 'S' is not within its bound;


1should extends xxxxxx
2
3
出现这种问题的原因是,springboot 版本问题,将 2。1 版本换成 1。5。4 版本。


或者是将代码改写一下


 return girlRepository.findOne(id);改写为:

return girlRepository.findById(id).orElse(null);

猜你喜欢

转载自blog.csdn.net/svneclipse/article/details/80996940