mybatis 4

Mapper Error (@ResultMap)

[ERROR] 24-12-04 15:07:02 [PaymentServiceImpl:169] - 결제완료 데이터 조회에 실패했습니다. org.apache.ibatis.binding.BindingException: Mapper method 'kr.co.sonystore.mappers.PaymentMapper.selectCountPayComplete' attempted to return null from a method with a primitive return type (int). /**     * 결제완료된 데이터를 조회한다     * @param input - 조회할 결제내역 정보에 대한 모델 객체     * @return 조회된 데이터 수     */    @Select(        "SELECT C..

IT/Spring 2024.12.04

MyBatis Log4j Error

### Error updating database.  Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for ProfessorMapper.insert = 매핑된 컬렉션에 ProfessorMapper.insert 값이 포함되어 있지 않다= ProfessorMapper 인터페이스에서 insert 메서드에 대한 매핑이 정의되어 있지 않다 원인 )- MyBatis 설정에서 매핑 파일의 경로가 잘못되었거나, 매핑 파일이 로드되지 않았을 수 있다- 매핑 파일에 정의된 ID와 인터페이스 메서드의 이름이 일치하지 않는 경우에 이 오류가 발생할 수 있다    => Mapper의 기능명(id)와 Jav..

IT/JAVA 2024.10.10
반응형