Framework/Spring Boot

[ERROR] EL1004E: Method call: Method hasError(java.lang.String) cannot be found on type org.thymeleaf.spring5.expression.Fields

잔망루피 2021. 11. 25. 19:05

🦔 에러 로그

Exception evaluating SpringEL expression: "#fields.hasError('content')" (template: "post/detail" - line 49, col 27)
EL1004E: Method call: Method hasError(java.lang.String) cannot be found on type org.thymeleaf.spring5.expression.Fields

s를 빼먹어서 생긴 에러였다 ㅠㅠ

"#fields.hasErrors('content')"가 맞다.

반응형