th:object="${greeting}" declare object thymeleaf
th:object="${greeting}"
@ModelAttribute bound incoming form content to method parameter
@ModelAttribute
어떻게 뷰에서 생성한 객체를 메서드 파라미터와 연결짓는지 궁금함. ModelAttribute.
ModelAttribute
뷰의 타임리프 필드 값과 객체 필드값을 어떻게 연결지을까? 필드 이름으로? setter이름으로?(카멜 케이스)