[공부] 프로그래밍
-
Spring Batch 구현 - 2[공부] 프로그래밍/Spring・Spring Boot (JAVA) 2024. 4. 18. 12:25
♧ 전체 코드 : https://github.com/woodisco/pass-batch GitHub - woodisco/pass-batchContribute to woodisco/pass-batch development by creating an account on GitHub.github.com JPA 연동① repository 작성repository/bookingrepository/notificationrepository/packazerepository/passrepository/statisticsrepository/user ② BaseEntity 작성@MappedSuperclass // 이 클래스를 상속받은 entity에서 아래 필드들을 컬럼으로 사용할 수 있다.@EntityListeners(Aud..
-
Spring Batch 구현 - 1[공부] 프로그래밍/Spring・Spring Boot (JAVA) 2024. 4. 16. 16:33
♧ 전체 코드 : https://github.com/woodisco/pass-batch GitHub - woodisco/pass-batchContribute to woodisco/pass-batch development by creating an account on GitHub.github.com 프로젝트 생성 및 샘플 코드 작성Spring bootGradleSpring BatchMySQL 8JPALombokModelMapper1. 프로젝트 생성 2. application.yml 파일 수정=> 일단 테스트를 위해 h2를 사용spring: datasource: url: jdbc:h2:mem:mydb username: woojoo password: 0425 driver-class-na..
-
[error] MYSQL_USER="root", MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user[공부] 프로그래밍/ERROR 2024. 4. 16. 16:13
MYSQL_USER="root", MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user 에러의 발생원인은 MYSQL_USER: root 를 설정했기 때문이다. root를 다른 이름으로 변경한 뒤에 아래 커맨드 실행하면 해결된다. docker-compose up --build --force-recreate -d
-
설치 및 MySQL 다운로드[공부] 프로그래밍/Docker 2024. 4. 16. 12:20
도커 데스트탑 설치 https://www.docker.com/products/docker-desktop/ Docker Desktop: The #1 Containerization Tool for Developers | Docker Docker Desktop is collaborative containerization software for developers. Get started and download Docker Desktop today on Mac, Windows, or Linux. www.docker.com 다운로드 후 버전 확인 docker -v MySQL 다운로드 https://hub.docker.com/_/mysql mysql - Official Image | Docker Hub Quick r..
-
비동기 처리[공부] 프로그래밍/프로그래밍의 기초 2024. 4. 10. 14:57
비동기 처리비동기 처리(Asynchronous processing)는 작업이 완료될 때까지 기다리지 않고 다른 작업을 계속할 수 있는 방식을 의미합니다. 이는 특히 작업이 시간이 오래 걸리거나 외부 자원에 의존해야 할 때 유용합니다.예를 들어, 웹 애플리케이션이 사용자에게 데이터베이스에서 데이터를 가져와야 한다고 가정해 봅시다. 만약 이 작업을 동기적으로 처리한다면, 데이터베이스에서 응답이 올 때까지 웹 애플리케이션은 대기 상태가 됩니다. 이는 다른 사용자들의 요청도 처리하지 못하게 만들 수 있습니다.하지만 비동기 처리를 사용하면 웹 애플리케이션이 데이터베이스에 요청을 보낸 후에도 다른 작업을 계속할 수 있습니다. 데이터베이스의 응답을 기다리는 동안에도 웹 애플리케이션은 다른 요청을 처리하거나 사용자에게..
-
thread[공부] 프로그래밍/프로그래밍의 기초 2024. 4. 10. 14:52
threadthread는 다중 작업 운영 체제에서 프로세스 내에서 실행되는 가장 작은 실행 단위입니다. 이는 프로그램 내에서 독립적인 실행 경로를 나타냅니다. thread들은 동일한 메모리 공간과 자원을 공유하며, 동시에 실행될 수 있습니다.각각의 thread는 자신만의 프로그램 카운터, 레지스터 세트 및 스택 공간을 가지고 있지만, 힙 메모리와 같은 프로세스 관련 자원은 공유합니다. thread를 사용하면 프로그램이 동시에 여러 작업을 수행할 수 있으므로 효율성과 응답성이 향상됩니다.thread는 병렬 처리, 비동기 I/O 작업, 네트워크 프로그래밍에서 여러 연결을 처리하는 데 사용되거나 그래픽 사용자 인터페이스(GUI)에서의 다중 작업과 같은 다양한 목적으로 활용될 수 있습니다. thread는 반응성..