- varchar2 최대 크기를 초과한 문자열 데이터를 저장하려할 때 발생
* Oracle Varchar2의 최대 크기는 4000 BYTES, UTF-8 한글 3Bytes, 1Bytes
int actorDetailLengh = actorDetail.length();
log.info(movieVO.getMovieCd()+"/"+movieVO.getMovieNm()+"/"+actorDetailLengh);
if(actorDetailLengh < 1330) {
movieVO.setActorDetail(actorDetail);
} else {
log.info("!!!!!!actorDetail!!!!!!"+movieVO.getMovieCd()+"/"+movieVO.getMovieNm()+"/"+actorDetailLengh+"/"+actorDetail);
actorDetail = actorDetail.substring(0, 1330);
int lastCommaIdx = actorDetail.lastIndexOf(",");
if(lastCommaIdx != -1) {
actorDetail = actorDetail.substring(0, lastCommaIdx);
movieVO.setActorDetail(actorDetail);
}
}