21.06.22 13:48 작성
·
964
0
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/order/orderList.html]")] with root cause
Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'orderPrice' cannot be found on object of type 'jpabook.jpashop.domain.OrderItem' - maybe not public or not valid?
이런 오류가 나오고 뷰 화면에서
<td th:text="${item.orderItems[0].orderPrice}"></td>
여기를 주석치면 정상동작 하고 아니면 오류가 나는데 어느쪽 문제일까요 ?