본문 바로가기

mybatis

[Mybatis] java.lang.AbstractMethodError: Receiver class org.mybatis.spring.batch.MyBatisBatchItemWriter does not define or inherit an implementation of the resolved method 'abstract void write(org.springframework.batch.item.Chunk)' of interface org.spring 배경 : 7주차 실습하는데 MybatisPagingItemReader 는 잘 되었는데 MybatisBatchItemWriter 는 자꾸 오류가나는 것을 확인하였다... 이거 역시 퍼플렉시티 통해서 원인 확인중 안됨.. 챗지피티도 안됨. 내용위 로그를 구글번역기에 돌렸다 java.lang.AbstractMethodError: 수신자 클래스 org.mybatis.spring.batch.MyBatisBatchItemWriter는 org.springframework 인터페이스의 해결된 메소드 'abstract void write(org.springframework.batch.item.Chunk)'의 구현을 정의하거나 상속하지 않습니다. 하 모르겠다 스터디방 영훈님이 알려주셨다. Mybatis 관련 의존성 버전을.. 더보기
[Mybatis] allowMultiQueries 1. 적용 이유 : 화면 내 다수 일괄 Update 처리 로직 적용 2. 적용 방법 application.properties 파일 내 JDBC 연결 URL 부분에 allowMultiQueries=true 추가 예시 : jdbc:mysql://localhost:3306/test?allowMultiQueries=true 설명 : allowMultiQueries 옵션을 true로 설정하게 되면 Mapper에서 아래와 같이 DML 자체를 forEach로 수행 할 수 있다. INSERT INTO TB_USER (name, id, password) VALUES (#{student.name}, #{student.id}, #{student.password}) 결과 ↓ INSERT INTO TB_USER(name, id.. 더보기

728x90