service1 Kotlin-Spring_Boot 강의 정리) 5. Service Layer https://youtu.be/Icnb3zvya-w 기본 프로젝트 아래에 service 폴더와 BankService class 파일을 생성해 줍니다. Service 작업은 비즈니스 로직(데이터 생성, 저장, 가공 등)과 Repository Layer를 호출하는 작업입니다. package com.study.hello_world.service import org.springframework.stereotype.Service @Service class BankService { } BankService에 @Service 어노테이션을 달아줍시다. 이번엔 Service를 테스트하기 위한 테스트 파일을 작성해줍니다. package com.study.hello_world.service import com.study.h.. 2023. 1. 29. 이전 1 다음