스프링 타임리프에서 th:object를 사용하면 굉장히 효율적이게 form 데이터의 값을 가지고 올 수 있다.
form 속성에 th:object="${item}"
input 속성엔 field
<input type="text" id="id" th:field="*{id}" class="form-control" readonly>
어떤점이 효율적인지 모르겠다 박준수!
어떤점이 효율적인지 모르겠다 박준수!