<select id="findRecipeBydishid" resultType="Recipe">
select dishid,favor,favorid,name,recipes,imagePath,igrename,mainmaterialname,mainmaterialnumber
from recipestable where dishid=#{dishid}
</select>
練習java web的時候.xml映射出問題導致報錯java.lang.ClassNotFoundException:無法初始化數據庫
<select id="findRecipeBydishid" resultType="cn.jwm.onMK.po.Recipe">
select dishid,favor,favorid,name,recipes,imagePath,igrename,mainmaterialname,mainmaterialnumber
from recipestable where dishid=#{dishid}
</select>
路徑改正確就好了。。。。
真的是一個馬虎,找半天bug。。。。
