一.html
百度解釋:web
返回json格式的數據,在controller返回數據到統一json轉換的時候,出現了json infinite recursion stackoverflowerror的錯誤,即json在將對象轉換爲json格式的數據的時候,出現了無限遞歸調用的狀況。json
本人理解:spa
可能存在ShopDao方法和List之間的調來調去3d
本人解決:htm
從dao的實現類開始把ShopDao統一改爲Shop(entity)對象
二.當修改數據時,web的html中的數據能夠傳送到dao方法裏面,可是數據卻沒修改爲功,也沒報錯。緣由blog
return JDBCUtil.update("update shop set title=?,area=?,discountText=?,priceNew=?,priceOld=?,boughtCound=?,img=? where id=?", shop.getTitle(),shop.getArea(),shop.getDiscountText(),shop.getPriceNew(),shop.getPriceOld(),shop.getBoughtCound(),shop.getImg(),shop.getId())>0;中的where後面把shop.getImg(),shop.getId()二者的順序換了過來