We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@RequestBody
Employee...이것도 엔티티라고 불러줘야ㅕ하는건진 모르겠는데 일단 모르겠으니까 엔티티라하고
엔티티에 getter가 없으니 null,,값을 못받아옴
내 추측으론 이건 마이바티스냐 뭐 JPA냐 상관없이 스프링에서 HttpMessageConverter가
RequestBody로 받는 객체에 getter 가 있어야 정상적으로 값을 받는 것 같음
The text was updated successfully, but these errors were encountered:
마이바티스는 그니까 SQL Mapper니까 이게 디펜던시에 넣으면 작동하는 곳이 딱
xxxMapper 클래스에서 @Mapper 어노테이션을 준 곳에서
@Mapper
@Insert("insert into employee(name) values( #{employee.name} )") int insert(@Param("employee") Employee employee);
이런식으로 마이바티스에서 요구하는 규칙을 따랐을때 디비와 커넥할때 작동하는거
Sorry, something went wrong.
롬복에서 엔티티에 @Data 붙여도 됨
@Data
kyupid
No branches or pull requests
Employee...이것도 엔티티라고 불러줘야ㅕ하는건진 모르겠는데 일단 모르겠으니까 엔티티라하고
엔티티에 getter가 없으니 null,,값을 못받아옴
내 추측으론 이건 마이바티스냐 뭐 JPA냐 상관없이 스프링에서 HttpMessageConverter가
RequestBody로 받는 객체에 getter 가 있어야 정상적으로 값을 받는 것 같음
The text was updated successfully, but these errors were encountered: