3
Thymeleaf + Springとフォームの検証を使用して、このフィールドの横にあるフィールドに関連するエラーを表示します。Thymeleaf:フィールドによる検証エラー
<input type="text"
th:field="*{companyName}" class="form-control"
placeholder="Code client" th:errorClass="'error'"/>
フィールドにエラーがある場合は、「エラー」クラスが実際に適用されます。しかし、フィールドの検証エラーを表示する簡単な方法はありますか?
おかげでたくさん! – Rolintocour