我在Thymleaf页面下面的表格发送参数inThymleaf。 我以为th:action="@{'/dashboard/makeAndSendInvoice(email=${po.Email})'}"
会做出这样dashboard/makeAndSendInvoice/{Email}
链接的URL @
一个链接所以我试图得到它在这样的方法:
@RequestMapping(method=POST, path="makeAndSendInvoice")
public String makeAndSendInvoice(@PathVariable("email") String email){
System.out.println("Invoice is sent to..................."+email);
return "Invoice";
}
,但在我看来,这是行不通的,因为它不承认我的方法。 因此,如何能接受我的方法
@Ralph ............... –