이전 글에서 데이터를 저장 할 entity와 데이터베이스와 메핑을 해줄 수 있는 repository를 작성한 후 데이터를 전달해 줄 dto를 작성을 하였습니다. 이제 서비스 로직을 작성을 해 보겠습니다. 상대방과 임의로 매칭 한 뒤 채팅방을 만드는 로직입니다.public ChatRoomDTO matchAndCreateRoom(Long userId) { User currentUser = userRepository.findById(userId) .orElseThrow(() -> new RuntimeException("User not found with userId: " + userId)); // 현재 사용자의 관심사 목록 List userInterests = current..