1 비지니스 계층의 설정
2 비즈니스 계층의 구현과 테스트
<aside> ⚙️ Business 영역에 있는 객체들을 Service 라는 용어로 많이 사용 함
</aside>
org.zerock.service.BoardService.java
package org.zerock.service;
public interface BoardService {
}
org.zerock.service.BoardServiceIple.java
package org.zerock.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zerock.mapper.BoardMapper;
import lombok.Setter;
import lombok.extern.log4j.Log4j2;
@Log4j2
@Service
public class BoardServiceImpl implements BoardService {
@Setter(onMethod_ = @Autowired)
private BoardMapper mapper;
}