springboot报错内容:
Inferred type ‘S’ for type parameter ‘S’ is not within its bound; should extends xxxxxx

或者

delete (com.zyk.blog.po.Type) in CrudRepository cannot be applied to Cjava.lang.Long)

出现这种情况是不要慌,这是spring boot版本所造成的

1、springboot 版本问题,将 2.0.1 版本换成 1.5.4 版本。

//容易出错
2、将studentRespository.findOne(id); 改为 studentRespository.findById(id).orElse(null);

//我的版本不好使
3、将studentRespository.findOne(id); 改为

//亲测有效
return studentRespository.findById(id).get();

//没试过
4、将studentRespository.findOne(id); 改为
return studentRespository.getOne(id);

二.在使用delete  方法时出现无法填入(id) 并且报出如下提示

delete (com.zyk.blog.po.Type) in CrudRepository cannot be applied to Cjava.lang.Long)

这是可以将代码改为

girlReposityory.deleteById(id)

问题解决

谢谢观看 阅读 !!!!

Inferred type S for type parameter S is not within its bound相关推荐

  1. SpringBoot:Inferred type 'S' for type parameter 'S' is not within its bound

    在使用springboot 方法报错: Inferred type 'S' for type parameter 'S' is not within its bound; should extends ...

  2. 【Mybatis-Plus】【异常】Inferred type ‘E‘ for type parameter ‘E‘ is not within its bound;

    问题描述 今天继承Mybatis-Plus里面的BaseMapper做的Dao层接口,实现selectPage()方法,但是一直报异常,代码和报错信息如下: @Service public class ...

  3. Spring data报错:Inferred type 'S' for type parameter 'S' is not within its bound;

    Spring data报错:Inferred type 'S' for type parameter 'S' is not within its bound; 参照 org.springframewo ...

  4. Inferred type 'S' for type parameter 'S' is not within its bound

    Inferred type 'S' for type parameter 'S' is not within its bound springboot报错内容: Inferred type 'S' f ...

  5. 使用SpringBoot报错:Inferred type ‘S‘ for type parameter ‘S‘ is not within its bound。【解决办法】

    ❌一.错误展示 使用SpringBoot时出现如下错误: Inferred type 'S' for type parameter 'S' is not within its bound 错误代码: ...

  6. 2、Inferred type ‘S‘ for type parameter ‘S‘ is not within its bound; should extend ‘com.yummy.sell.da

    2.Inferred type 'S' for type parameter 'S' is not within its bound; should extend 'com.yummy.sell.da ...

  7. Failed to register Grid Infrastructure type ora.mdns.type

    安装11g的集群软件的时候,在最后运行root.sh脚本时候,没有执行成功,最后提示如下错误: [root@r2 ~]# /u01/app/11.2.0/grid_1/root.sh Performi ...

  8. FutureWarning: Passing (type, 1) or ‘1type‘ it will be understood as (type, (1,)) / ‘(1,)type‘

    FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version ...

  9. Maven报错解决:Element 'dependency' cannot have character [children], because the type's content type is

    在用maven的时候遇到报错: Element 'dependency' cannot have character [children], because the type's content ty ...

最新文章

  1. asp创建mysql表_创建一个数据库,用ASP怎么写?
  2. linux kernel makefile analysis
  3. spring18-2:采用cglib字节码实现代理
  4. 查看Linux 下某个程序的内存情况
  5. tiny cc在云服务centos上运行
  6. iOS 键盘风格详解UIKeyboardType
  7. 每日一笑 | 3 X 4 = ?
  8. java 的对象类用_java基础(第零篇)对象与类
  9. AWS 给负载均衡器配置侦听器并上传IAM证书
  10. [Git高级教程 (一)] 通过 Tag 标签回退版本修复 bug
  11. 关于行内元素的margin padding一些说明;background-color的范围
  12. 伪原创工具哪个好用,自媒体伪原创文章生成器软件
  13. 平谷php,平谷区行政区划_行政区划网(区划地名网) www.xzqh.org
  14. stm32制作CAN适配器2--兼容使用周立功上位机
  15. TalkingData :如何做到30分钟内完成对数十亿受众数据的分析 | 会员专栏
  16. 开源软件的安全性风险_认真对待开源安全性
  17. 百家号不收录限流无推荐阅读为零抄袭的解决方法!
  18. 全球及中国组织工程医疗产品行业深度分析及十四五前景预测报告2022年版
  19. 新学期,我的目标与展望。(中秋快乐)
  20. 只有170字节,最小的64位Hello World程序这样写成

热门文章

  1. 创业圈里不讲武德,大厂高管也得挨市场的毒打
  2. 图灵学院专用-- 00JVM参数手册
  3. Binomial Showdown
  4. 白话斯坦福机器学习课程-CS229 - 监督学习应用:梯度下降
  5. 论文参考文献生成代码(2021.2.25)
  6. Hmmm:在社交网络上展示不同的真实的你
  7. 兔子繁殖问题python编程_C语言编程:兔子繁殖问题
  8. 企业如何管理终端软件安装
  9. js 公众号 获取code_微信公众号开发之网页授权登录及code been used 解决!
  10. flvplayer.swfnbsp;flv视频播放器…