Property 'id' not found on type java.lang.String问题解决

一般出现上述问题:存在两种情况


1、你的程序的属性没有提供getter方法


2、在<c:forEach var="list" items="${requestScope.employees} " var="emp"> 这里你没有采取EL表达式


 
但是我却犯了一个很弱智的错误 在这里items="${requestScope.emp}"我写成了 items="${requestScope.emp} ",多了一个空格,一直出现上述错误

猜你喜欢

转载自blog.csdn.net/lan_cer/article/details/79113420