[QueryDSL] join, paging, where, dto Qclass
·
JPA
사용 이유 jpa nativeQuery로 쿼리 조회를 하다가 다중 필터를 사용하게 되면서, where절을 유동적으로 사용하기위해 사용 // 설문조사 리스트 조회 @Query(value = "SELECT sc.content, s.* " + "FROM survey s left join survey_category sc on sc.sur_cat_id = s.category_id " + "WHERE 1=1 " + "and s.status = 'I' " + "and s.is_private = 'N' " "and s.category_id = :categoryId " , nativeQuery = true) Page findByCategoryIdAndStatus(@Param("categoryId") int catego..
[CDC] kafka Connect, Debezium, JDBC Sink Connector
·
Message Queue/Kafka
Confluent 사의 JDBC Sink Connector 통해 구축 Source DB : MySQL Source Connector: kafka Connect (Source Connector, Debezium) Target DB : Mysql, Oracle Sink Connector : kafka Connect (JDBC Sink Connector) 1. Docker Container 주키퍼, 카프카 docker-compose.yml version: "3" services: zookeeper: container_name: zookeeper image: wurstmeister/zookeeper ports: - "2181:2181" kafka: container_name: kafka image: wurstm..
Kafka Streams (Streaming Data Processing Programing)
·
Message Queue/Kafka
build.gradle kafka-streams 추가 dependencies { implementation 'org.apache.kafka:kafka-streams' } Kafka Streams strams_log 토픽 → stream() 소스프로세서 → to() 싱크프로세서 → stream_log_copy 토픽 @SpringBootApplication public class KafkaStreamsApplication { private static String APPLICATION_NAME = "streams-filter-application"; private static String BOOTSTRAP_SERVERS = "localhost:9092"; private static String STREAM_..
Branch, Checkout
·
Git
🌟 Branch, Checkout git log --all --graph --oneline merge base : 합치려고 하는 두 커밋의 공통단계 커밋 git merge o2 서로 다른 파일 병합 같은 파일, 다른 부분 병합 → 없는 부분 추가해서 자동으로 병합 같은파일, 같은 부분 병합 → CONFLICT(both modified) o2 3way merge 2way : 같은 것만 그대로 이어가고, 다른 것은 충돌, gitbash 3way : here(branch) / base / there(branch) git mergetool $ git config --global merge.tool p4mergetool $ git config --global mergetool.p4mergetool.cmd \\ "..
Backup
·
Git
1. remote $ git remote add origin https://github.com/IfUwanna/Tool.git 원격저장소와 연결 $ git remote -v 현재 연결되어 있는 원격 레파지토리를 확인 $ git remote remove origin 원격 저장소의 연결을 제거 2. push $ git push -set--upstream orign master $ git push -u orign master 3. clone 4. pull git pull vs git fetch git pull does a git fetch followed by a git merge. 💬 upstream vs origin otherRepository(upstream) -> (fork) myRepository(o..
Git Version Control
·
Git
1. init $ pwd /Users/live/Document/git/hello-git-cli $ git init initialize repository 버전 관리를 위한 기본 폴더를 생성하는 명령어 (이 디렉터리를 버전관리 하기 시작해) .git생김 git repository working tree 파일을 만들고 수정하는 버전으로 만들어지기 전 단계 staging area 버전을 만들려할 때 버전관리할 일부 파일들 올림 repository 만들어진 버전 2. add, commit $ nano *hello1.txt* $ git status working tree status 커밋의 상태를 보여줌 Changes not staged for commit ⇒ add Changes to be Committed, ..