我使用mybatis(MySql)动态语句犯了一些错误:
它显示错误Dynamic应该初始化。
SELECT * from studentdetails
<dynamic prepend="WHERE ">
<isNotEmpty prepend="AND" property="gender">
GENDER = #{gender}
</isNotEmpty>
<isNotEmpty prepend="AND" property="interestedin">
INTERESTEDin = #{interestedin}
</isNotEmpty>
</dynamic>