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

msna

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

msna

검색하기 폼
  • 분류 전체보기 (46)
    • leetcode medium (1)
    • leetcode easy (3)
    • IT (6)
    • today'work (15)
    • 일본생활정리 (17)
  • 방명록

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
복수개의 IntegrationFlow를 설정했을 때 테스트 코드 실행시 에러가 날 때

개요 디렉토리에 파일이 생성되는 경우에 감시하는 라이브러리로써 spring-integration을 사용하고 있다. 설정 방법은 간단한데 IntegrationFlow를 반환하는 빈을 설정하면 된다. 복수개의 디렉토리를 감시하는 경우 아래와 같이 복수개로 설정하면 된다. @Bean public IntegrationFlow integrationFlow1() { return IntegrationFlow .from(Files.inboundAdapter(new File("c:/inbound1")) , e -> e.poller(Pollers.fixedDelay(1000).maxMessagesPerPoll(10))) .handle(message -> System.out.println(message.getPayload(..

IT 2024. 4. 12. 20:15
PostgreSQL Table명과 Sequence 함께 찾기

결론 간단하게 information_schame.columns를 찾아보자. 개요 Sequence를 재설정하는 경우 SETVAL을 통해 가능하나 테이블명, Sequence 를 쓰는 컬럼명, Sequence 명이 필요 DB전체의 테이블명, Sequence 를 쓰는 컬럼명, Sequence 명을 취득하는 SQL문을 작성해보기로 함. PostgreSQL의 스키마 구조에 대해 우리가 만드는 테이블은 보통 'public'스키마에 담기고, 내부에서 처리를 위한 테이블은 'information_schema', 'pg_catalog'등에 담긴다. 내부 처리용 스키마에는 테이블도 있고 뷰도 있는데, 뷰는 사용자가 원하는 정보를 쉽게 얻기 위해 만들어놓은 것이다. 예) pg_stat_activity: 현재 활성화된 DB상태..

today'work 2023. 12. 24. 17:32
이전 1 ··· 6 7 8 9 10 11 12 ··· 16 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • QR코드읽기 #ReadQRCode
  • SnakeYAML
  • spring #redis #redis-cluster
  • logback #logstash #LoggingEventCompositeJsonEncoder #로그JSON
  • Python #Powertools
  • multipleIntegrationFlow
  • Two Sum
  • aws #aws region #aws credential #aws region provider #aws credential provier
  • lombok #maven build #sym
  • pdf.js
  • webjar
  • PostgreSQL #sequnceName
  • JUnit6
  • Postgresql #MultiTruncate
  • excel to markdown
  • PostgreSQL #FOR UPDATE #SKIP LOCKED
  • palindrome number
  • add two numbers
  • opencv로qr코드인식
  • 로그테스트 #콘솔로그테스트 #System.out
  • mybatis @insert값 @update값
  • AWS #X-Ray
  • cannotResolveSymbol
  • spring-integration
  • reverse integer
  • leetcode
  • Maven LF #메이븐 개행문자
  • excel table
  • 로그파일인덱스
  • springintegration #파일감시 #디렉토리감시 #파일완료검사
more
«   2025/11   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바