Account2 Account Controller Account Controller API 명세에 따라 Account의 Controller를 구현한다. 1. AccountController ■ AccountController API 요청시 호출되는 메서드(Controller)를 구현한 클래스 [AccountController] @RestController @RequiredArgsConstructor public class AccountController { private final AccountService accountService; private final FileProcessor fileProcessor; private final BCryptPasswordEncoder bCryptPasswordEncoder; @Value("${file.profil.. 2022. 5. 11. Account Service Account Service Controller로 들어온 요청을 처리하는데 사용되는 Sevice 계층을 구현한다. 1. AccountService ■ AccountService [AccountService] @Service @Transactional(readOnly = true) //[1] @RequiredArgsConstructor public class AccountService { private final AccountRepository accountRepository; private final FileProcessor fileProcessor; private final BCryptPasswordEncoder bCryptPasswordEncoder; @Value("${file.profile}") /.. 2022. 5. 11. 이전 1 다음