인프런 커뮤니티 질문&답변
글로벌 오류 form 바깥에 설정
작성
·
349
0
<div th:if="${#fields.hasGlobalErrors()}">
<p class="field-error" th:each="err : ${#fields.globalErrors()}"
th:text="${err}">글로벌 오류 메시지</p>
</div>
<form action="item.html" th:action th:object="${item}" method="post">
........
</form>
글로벌 오류 설정할 때 <form>태그 안에서만 가능한 이유와
<form>태그 밖에서 글로벌 오류 메시지를 보여줄 수 있는 방법이 있는지 궁금합니다.
퀴즈
Bean Validation의 가장 큰 목표는 무엇일까요?
수동 검증 코드 제거 및 표준화
데이터베이스 스키마 자동 생성
HTTP 요청 파라미터 암호화
UI 디자인 자동 생성





