오늘도삽집1 [Mybatis] insert 시 unsupported return type 에러 해결방법 Throwable Error!!! uri: /demo/user/addUser, trace: org.apache.ibatis.binding.BindingException: Mapper method 'com.example.demo.api.user.mapper.TestMapper.addUser' has an unsupported return type: class com.example.demo.api.user.dto.User 기본 insert 하는 API 를 만들고 테스트해보니까 DB 에는 잘 들어가지만 Application 단에서 위 에러가 발생했다;; 테이블에 있는 데이터 타입과 DTO(Model) 에 선언한 데이터 타입이 상이한게 있나? 하고 봤지만 없음.. 결론은 Application 단 리턴타입이 문제.. 2020. 1. 8. 이전 1 다음