• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

th:field에서 에러발생

20.07.30 01:43 작성 조회수 3.16k

1

타이핑을 잘못했나 싶어 작성되있는 html을 가져와서도 확인하였으나 동일한 현상이 발생합니다.

 th:field=*{nickname}"부분에서 
Error during execution of processor 'org.thymeleaf.spring5.processor.SpringInputGeneralFieldTagProcessor'

Bean property 'nickname' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?

SignUpForm에 getter setter를 추가하면 해당문제가 발생하지 않습니다.

답변 2

·

답변을 작성해보세요.

4

롬복이 제공하는 @Data를 써서 게터 세터를 자동생성하고 있는데 아마 롬복이 제대로 동작하지 않는거 같네요. 인텔리J에 롬복 플러그인 설치하시고 인텔리J 설정에서 annotation processing 옵션을 켰는지 확인해 주세요.

2

Yang님의 프로필

Yang

질문자

2020.07.30

@Data설명에도  게터세터를 생성한다되어있는데 안되서 어노테이션을 붙여도 에러가 발생해서 롬복쪽 문제인거같긴했는데  옵션이 꺼져있었네요

프로젝트를 새로생성하면서 그런가봅니다.

감사합니다 :)