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 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相关推荐
- 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 ...
- 【Mybatis-Plus】【异常】Inferred type ‘E‘ for type parameter ‘E‘ is not within its bound;
问题描述 今天继承Mybatis-Plus里面的BaseMapper做的Dao层接口,实现selectPage()方法,但是一直报异常,代码和报错信息如下: @Service public class ...
- 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 ...
- 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 ...
- 使用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 错误代码: ...
- 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 ...
- Failed to register Grid Infrastructure type ora.mdns.type
安装11g的集群软件的时候,在最后运行root.sh脚本时候,没有执行成功,最后提示如下错误: [root@r2 ~]# /u01/app/11.2.0/grid_1/root.sh Performi ...
- 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 ...
- 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 ...
最新文章
- asp创建mysql表_创建一个数据库,用ASP怎么写?
- linux kernel makefile analysis
- spring18-2:采用cglib字节码实现代理
- 查看Linux 下某个程序的内存情况
- tiny cc在云服务centos上运行
- iOS 键盘风格详解UIKeyboardType
- 每日一笑 | 3 X 4 = ?
- java 的对象类用_java基础(第零篇)对象与类
- AWS 给负载均衡器配置侦听器并上传IAM证书
- [Git高级教程 (一)] 通过 Tag 标签回退版本修复 bug
- 关于行内元素的margin padding一些说明;background-color的范围
- 伪原创工具哪个好用,自媒体伪原创文章生成器软件
- 平谷php,平谷区行政区划_行政区划网(区划地名网) www.xzqh.org
- stm32制作CAN适配器2--兼容使用周立功上位机
- TalkingData :如何做到30分钟内完成对数十亿受众数据的分析 | 会员专栏
- 开源软件的安全性风险_认真对待开源安全性
- 百家号不收录限流无推荐阅读为零抄袭的解决方法!
- 全球及中国组织工程医疗产品行业深度分析及十四五前景预测报告2022年版
- 新学期,我的目标与展望。(中秋快乐)
- 只有170字节,最小的64位Hello World程序这样写成