Property [text] not found on type [java.lang.String]
Property [text] not found on type [java.lang.String]
这两天在开发的时候,碰到了一个麻烦了我一天半的问题。
我综合了网上各个处理结果,大部分都说是 items=""没加${} 又或者是
items= " ${} " 又或者是}这个后面多了个空格
以及Bean实体类的错误
但我这些在我检查之后,我寻思我也没写错啊。
气煞我也
于是我自己看着错误,我自己也做了测试数据发现他只有[1,2,3,4,5,6]的数据
然后就是漫长的检查代码以及百度的过程了。。。。
终于在我的再三思考下,找到了一处错误,真的是卧槽了。
String !!!错误显示我在前台页面调数据的时候找不到为text的数据,因为我的数据就是1,2,3,4,5,6 里面也没有 text 所以我才会报这个错误。所以我修正了一下
select id="findAll" resultType="TbContent" parameterType="com.video.pojo.TbContent" >select * from tb_content </select>
我把String改为了Bean实体类的名字,于是错误搞定。。
Property [text] not found on type [java.lang.String]相关推荐
- Property ‘id‘ not found on type java.lang.String问题解决
Property 'id' not found on type java.lang.String问题解决 参考文章: (1)Property 'id' not found on type java.l ...
- javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String
这个错误应该是你从处理器里把数据展示给页面的时候出现的,而且用到了jstl表达式,比如: 此时出现 javax.el.PropertyNotFoundException: Property 'xxx ...
- javax.el.PropertyNotFoundException: Property 'fullName' not found on type java.lang.String
javax.el.PropertyNotFoundException: Property 'fullName' not found on type java.lang.String 这里有el标志,后 ...
- javax.el.PropertyNotFoundException: Property 'typeId' not found on type java.lang.String
问题描述: 将后台内容回显到前台时,报错 问题分析: javax.el.PropertyNotFoundException:说明是在写el表达式的时候,参数配置错误,经检查,el表达式写错了 问题解决 ...
- Failed to convert property value of type java.lang.String to required type java.lang.Integer for pro
Failed to convert property value of type java.lang.String to required type java.lang.Integer for pro ...
- spring:Failed to convert property value of type ‘java.lang.String‘ to required type ‘java.util.Date‘
前言 springboot有接口日期转换的经典问题,给Entity加@JsonFormat解决了输出json日期格式的输入输出问题,但是解决不了非@RequestBody/也就是普通表单提交的日期格式 ...
- Cannot convert value of type ‘java.lang.String‘ to required type ‘java.util.Map‘ for property ‘param
问题描述 若依中使用feign进行远程调用,在get请求中使用@SpringQueryMap映射对象时,映射对象的父类中带有Map<String, Object>类型的params属性时, ...
- 报错: Cannot convert value of type ‘java.lang.String‘ to required type
报错: Cannot convert value of type 'java.lang.String' to required type Caused by: java.lang.IllegalSta ...
- Consider defining a bean of type ‘java.lang.String‘ in your configuration
Consider defining a bean of type 'java.lang.String' in your configuration 总结了网上的几种解决方案: 1.多余的@autowi ...
- Failed to convert value of type 'java.lang.String' to required type 'java.util.Date
异常原因:Controller层获取JSP页面请求参数是String类型,而在Controller层接收时使用Date类型,属于方法参数类型不匹配异常 警告: Failed to bind reque ...
最新文章
- 【Codeforces】1093C Mishka and the Last Exam
- js post中服务器500错误信息,node.js - Node Express Post 500(内部服务器错误)jquery-3.4.1.min.js - 堆栈内存溢出...
- Session机制二(简易购物车案例)
- 计算程序执行时间的函数
- SAP云平台部署应用时遇到的502 Updating service failed - Bad Gateway
- haproxy负载均衡_Haproxy+keepalived高可用集群实战
- linux 如何解压.exe,linux下解压火狐浏览器压缩包 ./filefox 运行可执行程序报错问题...
- Unity视频播放之Video Player的简单使用
- Java 二叉树的层序遍历
- 矩阵最简行阶梯型计算器_一个例子看懂二次型的三种线性替换的区别
- 有些梦想任时光侵袭也无法忘记,社科院杜兰金融管理硕士项目助你圆梦
- 阿里云域名注册+服务器购买+备案教程
- 古天乐一哭,电影宣传又跪了下来
- 荣之学:跨境电商和淘宝哪个好?
- transceiver意思_IP Transceiver是什么意思
- MySQL中sum和count用法总结
- 彻底搞懂BLDC与PMSM的区别
- 【搜搜李找】如果宠物能上网,那论坛会变成什么样~~
- 第68届柏林国际电影节组委会日前公布了电影名单
- 深度学习中的潜在空间
热门文章
- 单模光电转换器怎么接_光纤收发器及其连接方式图解!
- 乔治城大学计算机gre,2016年美国乔治城大学GRE成绩要求
- java 标点符号_java的标点符号
- burp 安装 license key not recognized
- 初生牛犊不怕虎 golang入坑系列
- 专访李果:初生牛犊不怕虎的移动创业者
- 盒子模型与PS基本操作
- WinForm下多层架构的实现
- 复杂美吴思进出席浙江公共政策研究院“数字赋能与浙江智造”沙龙
- 计算机丢失cxcore100.dll,cxcore100.dll