${message}<form:errors path="*"></form:errors>
解析爲html
<span th:if="${#fields.hasErrors('${alipayForm.*}')}"><span th:errors="${alipayForm.*}"></span></span> <span th:text="${message}"></span>
再解析distributorAlipayConfirm.html時,找url比較複雜,經過分銷商註冊登錄後須將維護價格中的商品生成二維碼來查找檢測頁面的地址,測試過程當中會出現cartList爲空的問題,須建立空的cartList實例以下java
List<CartForm> cartList = new ArrayList<>(); model.addAttribute("cartList", cartList);
還有或者userBar的問題,須添加以下代碼:session
UVO uvo =new UVO(); session.setAttribute("UVO", uvo);
固然還有」糧食「問題,須將其初始化添加以下代碼:測試
GoodsForm goodsForm = new GoodsForm(); goodsForm.setType("糧食"); model.addAttribute("goodsForm", goodsForm);