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


Inferred type 'S' for type parameter 'S' is not within its bound; should extends xxxxxx

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

或者是将代码改写一下

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

转自https://blog.csdn.net/HeatDeath/article/details/79840834


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM