[Spring] @Transactional 사용 시 NullPointerException 발생
·
Spring
겪은 문제@Service@RequiredArgsConstructorpublic class UserService { private final UserRepository userRepository; private final UserMapper userMapper; public final User signup(UserSignupRequestDto requestDto) { User user = this.userMapper.toEntity(requestDto); return this.userRepository.save(user); } @Transactional public void verify(User user) { user.verify(); ..