Skip to content

Commit

Permalink
Feat: 재난문자 성능 이슈 수정 (#57)
Browse files Browse the repository at this point in the history
* Feat(#43): 재난 문자 임시 api 구현 (더미데이터)

* Feat(#43): Swagger 설명 추가

* Chore(#43): 크롤링 위한 종속성 추가

* Fix(#43): 코드 오타 수정

* Feat(#43): 재난 관련 예외처리

* Feat(#43): 재난 유형 수정

* Feat(#43): 재난문자 데이터 자동수집 구현

* Feat(#43): 위도 경도에 따른 최근 재난 가져오는 api 구현

* Refactor(#43): 코드 리팩토링

* Fix(#43): 재난 수집시 버그 수정 및 예외 처리

* Fix(#43): 스케줄링 주기 수정

* Fix(#43): @transactional 어노테이션 제거
  • Loading branch information
nohy6630 authored Nov 12, 2023
1 parent cc23049 commit 3cc62cf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.util.UriComponentsBuilder;
Expand All @@ -35,10 +36,9 @@
import java.time.LocalDateTime;
import java.util.*;

@Component
@Service
@RequiredArgsConstructor
@Slf4j
@Transactional(readOnly = true)
public class DisasterDataCollector {
private final RestTemplate restTemplate;
private final DisasterProperties disasterProperties;
Expand All @@ -59,7 +59,6 @@ public void init() {
}

@Scheduled(fixedDelay = 60 * 1000)
@Transactional
public void collectData() {
//log.info("collectData()");
URI uri = UriComponentsBuilder
Expand Down

0 comments on commit 3cc62cf

Please sign in to comment.