There is no getter for property named 'title' in 'class java.lang.String'
阿新 • • 發佈:2018-12-21
錯誤原因如下
<select id="getSoftToolList" parameterType="String" resultType="SoftTool"> SELECT id,title,language,info,download_url,password,updatetime,environment,weburl,author FROM tb_tools <where> <if test="title!=null and title!=''">title LIKE concat('%',#{title},'%')</if> </where> </select>
是因為if中test裡寫錯了
<select id="getSoftToolList" parameterType="String" resultType="SoftTool"> SELECT id,title,language,info,download_url,password,updatetime,environment,weburl,author FROM tb_tools <where> <if test="_parameter!=null and _parameter!=''">title LIKE concat('%',#{title},'%')</if> </where> </select>
test="_parameter!=null and _parameter!=' '"
問題解決!