Tôi có biểu mẫu sau trong Mùa xuân đang hiển thị thông báo lỗi. Tôi tự hỏi khi nào tôi nên sử dụng mùa xuân: ràng buộc? Điều đó làm gì để phân biệt điều đó với? Tôi đã nghiên cứu các trang này a, b nhưng tôi vẫn đang bối rối.Sự khác nhau giữa mùa xuân: ràng buộc và hình thức: lỗi là gì?
<form:form method="post"
action="http://localhost:8080/project/calculator/process"
modelAttribute="keyPadForm">
Name1: <form:input type="text" path="name1" />
<form:errors path="name1" />
<form:form method="post"
action="http://localhost:8080/project/calculator/process"
modelAttribute="keyPadForm">
<spring:bind path="name1">
Name1: <form:input type="text" path="name1" />
<form:errors path="name1" />
</spring:bind>