본문 바로가기 메뉴 바로가기

msna

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

msna

검색하기 폼
  • 분류 전체보기 (26)
    • leetcode medium (1)
    • leetcode easy (3)
    • IT (6)
    • today'work (13)
  • 방명록

springintegration #파일감시 #디렉토리감시 #파일완료검사 (1)
Spring Integration을 사용하여 파일(디렉토리)을 감시할 때 주의점(복사 완료 체크)

개요특정 폴더에 파일(디렉토리)이 복사되면 그 파일을 핸들링 하는 처리가 필요하다.특정 폴더는 네트워크상에 있는 공용 폴더이다.파일의 감시는 Spring Integration을 이용하면 간단하게 해당 생성 파일의 java.io.File인스턴스를 얻을 수 있다. 문제점파일을 핸들링할 때 파일(특히 디렉토리)이 완료되지 않은 상태일 가능성이 있다는 것을 알게 되었다. Spring integration코드 예제빈 설정@Configurationpublic class BeanConfig { @Bean public IntegrationFlow integrationFlow(){ return IntegrationFlow.from(Files.inboundAdapter(new File("c:/inb..

today'work 2024. 5. 17. 02:11
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • json
  • 로그테스트 #콘솔로그테스트 #System.out
  • Maven LF #메이븐 개행문자
  • leetcode
  • excel to markdown
  • excel table
  • logback #logstash #LoggingEventCompositeJsonEncoder #로그JSON
  • multipleIntegrationFlow
  • spring-integration
  • Two Sum
  • mybatis @insert값 @update값
  • spring #redis #redis-cluster
  • opencv로qr코드인식
  • springintegration #파일감시 #디렉토리감시 #파일완료검사
  • PostgreSQL #sequnceName
  • lombok #maven build #sym
  • 로그파일인덱스
  • AWS #X-Ray
  • Python #Powertools
  • add two numbers
  • yaml
  • cannotResolveSymbol
  • Postgresql #MultiTruncate
  • palindrome number
  • QR코드읽기 #ReadQRCode
  • PostgreSQL #FOR UPDATE #SKIP LOCKED
  • aws #aws region #aws credential #aws region provider #aws credential provier
  • reverse integer
  • SnakeYAML
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바