안녕하세요, 컨트롤러에서 serviceImpl로 데이터를 넘길 때 list 로 넘겼지만 데이터를 한개씩 처리할 때 반복문을 사용해보겠습니다. Controller 에서 ServiceImpl 로 list 데이터 넘겼을 때 list 데이터를 한개씩 처리하기 (반복문) < 컨트롤러 > jsp파일에서 컨트롤러로 list형식으로 데이터를 넘겼습니다.
컨트롤러는 -> @RequestBody List noticeVO 로 데이터를 넘겨 받았습니다. int result = noticeService.noticeSmsInsert(noticeVO); 로 noticeSmsInsert라는 서비스로 List 를 넘겼습니다. < 서비스 > int noticeSmsInsert(List noticeVO); < 서비스임플 > List noticeVOList -> 리스트로 넘겨받고 for(NoticeVO noticeVO : noticeVOList) ...
#
for반복문
#
list
#
list반복문
#
list사용법
#
서비스
#
서비스임플
#
이클립스
#
자바
#
컨트롤러