我的这个错误是这个There is no getter for property named ‘tagId‘ in ‘class java.lang.String‘,遇到过好几次了,去检查set get方法也有,并没有缺失
我的DAO层:
String selectTagName(String tagId);
Mapper:
<select id="selectTagName" parameterType="String" resultType="String"> select tree_name from SJZX_DATA_TAGS where tree_code = ${tagId} </select>
解决方案:
在DAO层变量前加@Param("变量名")
修改后的DAO层:
String selectTagName(@Param("tagId")String tagId);
问题解决。
There is no getter for property named '×××' in '×××'
原文:https://www.cnblogs.com/XdyKatarina/p/13551943.html