반응형

Caused by: org.attoparser.ParseException: Error during execution of processor 'org.thymeleaf.spring5.processor.SpringInputGeneralFieldTagProcessor'
Caused by: java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'admin' available as request attribute
에러가 뜬다..
SpringBoot+Thymeleaf 환경에서 위와 같은 에러로 화면이 랜딩되지 않는 경우가 있다. 에러를 번역기 돌려보면 알겠지만 랜딩하려는 html 자원을 찾지 못해서 그런건데 이런문제가 발생하는데에는 정말 많은 이유가 있다.
서칭하면 가장 많이 나오는 것이 html 페이지 내에 Thymeleaf 문법을 잘못 사용하거나 Controller 에서 리턴하는 model 을 오타로 잘못 참조하고 있는 경우이다..
어떻게 해결을 해야 할까! 고민 해봐야겠다..
문제 해결
- th:object와 th:field를 빼버리고 진행하니까 잘 넘어간다..
이유가 뭘까 object에 안 담겨서 field로 못 넘겨줘서 겠지만 -.-
무튼 둘 다 빼고 id=*{~} 이렇게 잡아주니까 성공
고민해봐야겠다 끗
반응형
'공부 > SpringBoot & Spring' 카테고리의 다른 글
| Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 오류 (0) | 2022.06.22 |
|---|---|
| has an unsupported return type 오류 (0) | 2022.06.17 |
| Mybatis TooManyResultsException 오류 (0) | 2022.06.15 |
| MyBatis 오류: Invalid bound statement (not found) (0) | 2022.06.15 |
| mybatis mapper resultMap (0) | 2022.06.14 |