본문 바로가기

전체 글

Windows에서 Helm bitnami 레포지토리 추가 방법 1. Helm 다운로드choco install kubernetes-helmhttps://docs.aws.amazon.com/eks/latest/userguide/helm.html Using Helm with Amazon EKS - Amazon EKSIf you get a message that openssl must first be installed, you can install it with the following command. sudo yum install openssldocs.aws.amazon.com 2. 버전 확인helm version 3. Helm 레포지토리 설정 (stable) helm repo add stable https://charts.helm.sh/stable 4. 레포지토리에서 .. 더보기
Mongosh로 몽고DB 접속 및 루트 사용자 생성 1. mongosh 다운로드Welcome to MongoDB Shell (mongosh) Welcome to MongoDB Shell (mongosh) - MongoDB ShellThe MongoDB Shell , mongosh, is a JavaScript and Node.js REPL environment for interacting with MongoDB deployments in Atlas , locally, or on another remote host. Use the MongoDB Shell to test queries and interact with the data in your MongoDB database. Dowwww.mongodb.com2. mongosh 파일 bin위치로 이동 3. .. 더보기
Feign Client Decode Exception Feign Client로 요청을 보내는데, 디코딩을 할 수 없다는 예외가 발생했습니다.import com.sdi.work_order.client.response.JigItemResponseDto;import com.sdi.work_order.util.Response;@FeignClient(name = "jigItemClient", url = "${api-base-url}")public interface JigItemClient { @GetMapping("/jig-item") Response findBySerialNo(@RequestParam(name = "serial-no") String serialNo);}FeignClient는 기본 생성자가 필요합니다.JigItemResponseDto는 r.. 더보기
Spring Boot Jpa 네이티브 쿼리로 엘라스틱서치 쿼리 구현하기 0. 개요Spring Boot와 Jpa를 활용한 네이티브 쿼리로 엘라스틱 서치 쿼리를 구현해 보겠습니다.Spring Boot와 엘라스틱 서치를 연결하는 방법은 아래 글에 적혀 있습니다.스프링부트로 엘라스틱서치 쿼리 날리기그리고 이 글은 아래 글과 관련 있습니다.뉴스 데이터를 위한 엘라스틱 서치 쿼리 모음1. 연도별 키워드 Top1001.1 엘라스틱서치 쿼리{ "query": { "bool": { "must": [ { "match": { "대분류": "사회" } }, { .. 더보기
뉴스 데이터를 위한 엘라스틱 서치 쿼리 모음 뉴스 데이터를 저장하고, 쿼리로 조회한다.1. 인덱스 생성// PUT http://{ip}:{port}/hani-news-topic-index{ "settings": { "analysis": { "analyzer": { "keyword_extract_analyzer": { "type": "custom", "tokenizer": "keyword_extract_tokenizer", "filter": [ "keyword_extract_stop_filter", "ke.. 더보기
@EnableBatchProcessing 사용시 설정 Back Off Spring batch 5.1 버전 릴리즈 노트에 @EnableBatchProcessing이 자동으로 붙는다고 나와있다. What’s New in Spring Batch 5.1 :: Spring Batch What’s New in Spring Batch 5.1 :: Spring BatchEmbracing JDK 21 LTS is one of the main themes for Spring Batch 5.1, especially the support of virtual threads from Project Loom. In this release, virtual threads can be used in all areas of the framework, like running a concurrent step .. 더보기
UnsupportedProductError The client noticed that the server is not a supported distribution of Elasticsearch 사용하는 엘라스틱 서치 버전과 파이썬 라이브러리 버전이 맞지 않아서 발생하는 문제입니다. 저는 엘라스틱 서치 버전을 7.10.2로 쓰고 있습니다. version: '3.7' services: elasticsearch: build: context: elasticsearch/. # elasticsearch 전용 Dockerfile을 가져와 빌드 args: ELK_VERSION: 7.10.2 ... 하지만, pip로 다운받은 엘라스틱서치 라이브러리 버전을 확인해보니 8.12.1이었습니다. 그래서 라이브러리 버전을 다운그레이드 했습니다. pip install elasticsearch==7.11.0 더보기
Pillin 프로젝트 백엔드 개발 리뷰 https://m.onestore.co.kr/mobilepoc/apps/appsDetail.omp?prodId=0000774295 필린 - 원스토어 여러분의 건강을 책임지는 영양제 재고 관리 서비스 Pillin입니다! m.onestore.co.kr 💡 Pillin 프로젝트의 백엔드 개발에서 사용한 아키텍처 및 규칙을 정리했습니다. 백엔드 구조도 규칙 Controller는 Dto만을 사용한다. Service는 필요시 Vo, Entity에 저장된 데이터를 사용하여 연산한다. Controller에서 전달받은 데이터 자체를 변환할 수 없게 하기 위해 Vo를 사용한다. Dao는 Service로 받은 데이터로 DB에 정보를 조회한다. 요청 처리 Flow 사용자는 서버에 Rest하게 요청한다. Security Fil.. 더보기