spring boot3 Spring Boot와 Elastic Search 연동 Git Code 버전 : 0.0.7-SNAPSHOTSpring Boot와 Elastic Search를 연동 데이터를 저장하고 불러오는 내용을 정리해 보겠다.build.gradle에 dependencies를 추가한다.implementation 'org.springframework.boot:spring-boot-starter-data-elasticsearch'application.yml에 접속정보를 추가한다.spring: elasticsearch: uris: http://localhost:9200Elastic Search에 저장할 데이터 entity와 read, write 할 Repository Interface를 생성해 준다.KRXListedData.java더보기package io.per.. 2025. 1. 22. ECharts로 켄들차트 그리기 Git Code 버전 : 0.0.6-SNAPSHOT 주식데이터를 켄들차트로 그려보겠다. Apache ECharts에서는 많은 형식의 그래프를 지원하며 예제도 잘되어있다.https://echarts.apache.org/en/index.html Apache EChartsECharts: A Declarative Framework for Rapid Construction of Web-based Visualization You are welcomed to cite the following paper whenever you use ECharts in your R&D projects, products, research papers, technical reports, news reports, books, presen.. 2025. 1. 17. Spring Boot JPA를 사용한 PostgreSQL 연동 Git Code 버전 : 0.0.3-SNAPSHOT Spring Boot에서 JPA를 사용하기 위해 build.gradle의 dependencies 안에 아래와 같이 라이브러리를 추가한다.implementation 'org.springframework.boot:spring-boot-starter-data-jpa'implementation 'org.postgresql:postgresql' DB 연결 설정을 applicaiton.yml 파일에 아래와 같이 설정해 준다. 크게 2 부분으로 jpa를 사용하기 위한 설정과 jpa를 통해 연결할 PostgreSQL 연결 설정이다. 중간 ddl-auto 옵션만 주의해서 설정하는데 JPA의 좋은 점으로 DB에 접속해서 Table이 없으면 Table을 생성해 주고 .. 2025. 1. 15. 이전 1 다음