전체 글
-
AWS RDS 구축하기프로젝트/게시판 프로젝트 2022. 6. 11. 00:01
AWS 가입 및 EC2 인스턴스 생성(1) EC2 자바 11 설치 및 타임존 설정(2) AWS RDS 구축하기(3) AWS EC2에 스프링부트 프로젝트 배포하기(4) "AWS RDS 사용하기" 시작하겠습니다 RDS란? AWS에 데이터베이스를 직접 설치하게 되면 모니터링, 알람, 백업 , HA 구성등을 모두 직접 하게 됩니다. 이러한 작업들이 번거롭기 때문에 AWS에서는 위에 언급한 작업들을 모두 지원하는 Relational Database Service를 제공합니다. RDS는 AWS에서 지원하는 클라우드 기반 관계형 데이터베이스입니다. 데이터베이스를 다룰 때 RDS VS EC2에 대해 조금 더 자세하게 알고 싶으시다면 다음 글을 참고하시면 좋을 것 같습니다. https://junuuu.tistory.co..
-
EC2 자바 11 설치 및 타임존 설정 , HostName 변경프로젝트/게시판 프로젝트 2022. 6. 10. 00:01
AWS 가입 및 EC2 인스턴스 생성(1) EC2 자바 11 설치 및 타임존 설정(2) AWS RDS 구축하기(3) AWS EC2에 스프링부트 프로젝트 배포하기(4) 1. 설치 가능한 Java 리스트 검색 : yum list java* 여러가지들이 나오는데 여기서 Java11을 다운로드하겠습니다. yum이란 Yellowdog Update Modified의 약자로 리눅스 배포판에서 사용하는 프로그램 설치 관리 도구입니다. 명령어만 보면 전혀 기능과 관계없어 보이지만 yum 명령어를 통해 패키지 의존성 문제를 자동으로 처리하면서 설치, 업데이트, 삭제를 진행할 수 있습니다. 2. 설치 : yum install java-11-amazon-corretto.x86_64 위의 명령어를 입력해보니 아래와 같은 에러가..
-
[프로그래머스] 2020 카카오 인턴십 - 동굴 탐험 - 자바(JAVA)알고리즘/프로그래머스 2022. 6. 10. 00:01
https://programmers.co.kr/learn/courses/30/lessons/67260?language=java 코딩테스트 연습 - 동굴 탐험 9 [[0,1],[0,3],[0,7],[8,1],[3,6],[1,2],[4,7],[7,5]] [[8,5],[6,7],[4,1]] true 9 [[8,1],[0,1],[1,2],[0,7],[4,7],[0,3],[7,5],[3,6]] [[4,1],[5,2]] true 9 [[0,1],[0,3],[0,7],[8,1],[3,6],[1,2],[4,7],[7,5]] [[4,1],[8,7],[6,5]] false programmers.co.kr 문제 해석 n개의 방으로 이루어진 지하 동굴을 탐험하고자 한다. 모든 방에는 0부터 n-1번까지 번호가 붙어있습니다. ..
-
AWS가입 및 EC2 인스턴스 생성프로젝트/게시판 프로젝트 2022. 6. 9. 01:16
AWS 가입 및 EC2 인스턴스 생성(1) EC2 자바 11 설치 및 타임존 설정(2) AWS RDS 구축하기(3) AWS EC2에 스프링부트 프로젝트 배포하기(4) 1. AWS 가입(공짜 1년을 얻기 위해 새로 가입해 보겠습니다) AWS 사이트 1-1단계 이메일 입력 -> 이메일 인증 1-2단계 연락처 정보 입력 1-3단계 신용카드 정보 기입(체크카드도 됩니다) 단! Master 혹은 Visa 카드 1-4단계 휴대전화 인증 1-5단계 Support Plan 선택(기본 지원 - 무료 선택) 2. EC2 인스턴스 생성하기 AWS에서 리눅스 서버 혹은 윈도우 서버를 사용한다는 것이 EC2를 사용한다는 것과 동일한 이야기입니다. AWS에서 무료로 제공하는 프리티어 플랜에서는 EC2 사용에 다음과 같은 제한이 ..
-
[프로그래머스]2022 KAKAO BLIND RECRUITMENT - 양과 늑대 - 자바(JAVA)알고리즘/프로그래머스 2022. 6. 9. 00:01
https://programmers.co.kr/learn/courses/30/lessons/92343 코딩테스트 연습 - 양과 늑대 [0,0,1,1,1,0,1,0,1,0,1,1] [[0,1],[1,2],[1,4],[0,8],[8,7],[9,10],[9,11],[4,3],[6,5],[4,6],[8,9]] 5 [0,1,0,1,1,0,1,0,0,1,0] [[0,1],[0,2],[1,3],[1,4],[2,5],[2,6],[3,7],[4,8],[6,9],[9,10]] 5 programmers.co.kr 문제 해석 이진트리 모양 각 노드에 늑대와 양이 한 마리씩 놓여 있습니다. 각 노드를 돌아다니며 양을 모으려 합니다. 각 노드를 방문할 때 마다 해당 노드에 있던 양과 늑대가 따라옵니다. 이때, 늑대는 양을 잡아먹..
-
SpringBoot CI/CD 도입전 분석(젠킨스 vs 트레비스)프로젝트/게시판 프로젝트 2022. 6. 8. 03:39
예전에 CI/CD를 공부하기 위해 간단하게 정리한 글이 있었습니다. https://junuuu.tistory.com/21 [Java] 배포란?(+ CI/CD) 배포란(Deploy) 작성한 코드를 빌드하고, 빌드가 완성된 실행 가능한 파일(jar war)을 사용자가 접근할 수 있는 환경에 배치한 것 즉, 빌드를 하고 생성된 jar 또는 war 파일을 WAS에 올리는 거나 .exe junuuu.tistory.com CI : Continuous Integration 개발자를 위한 자동화 프로세스로 지속적인 통합하는 방식 만약 주기적으로 통합을 하지 않고 오래 시간이 지난 후 통합을 하면 큰 충돌이 날 확률이 높습니다. CD : Continuous Deployment 또는 Continuous Delivery D..
-
[프로그래머스] 2021 카카오 채용연계형 인턴십 - 미로 탈출 - 자바(JAVA)알고리즘/프로그래머스 2022. 6. 8. 00:01
https://programmers.co.kr/learn/courses/30/lessons/81304 코딩테스트 연습 - 미로 탈출 4 1 4 [[1, 2, 1], [3, 2, 1], [2, 4, 1]] [2, 3] 4 programmers.co.kr 문제 해석 1번부터 3번까지 번호가 붙어있는 3개의 방이 있고, 방과 방 사이를 연결하는 길에는 이동하는 걸리는 시간이 표시되어있습니다. 화살표가 가리키는 방향으로만 이동할 수 있습니다. (단방향 그래프) 미로에는 함정이 존재하며 함정으로 이동하면 이동한 함정과 연결된 모든 화살표의 방향이 바뀝니다. 출발지점인 start에서 end로 이동하는데 걸리는 최소 시간을 구하려고 합니다. 문제 풀이 전 설계 서로 다른 두 방 사이에 직접 연결된 길이 여러 개 존재..
-
Spring REST Docs 적용하기(+ html 생성안됨 에러 해결, ./grdlew build 에러 해결, 각종에러해결)프로젝트/게시판 프로젝트 2022. 6. 7. 01:11
지난 포스팅을 통해 API 문서화를 위해 Swagger와 Spring Rest Docs를 비교하여 보았습니다. 그리고 분석을 통하여 좀 더 깔끔 명료한 문서를 만들 수 있고 문서와 코드의 괴리감이 생길 수 없는 Spring Rest Docs를 적용해보고자 합니다. 추가적으로 공부하다가 알게 된 점으로는 Postman으로도 API 문서를 만들 수 있습니다. 하지만 테스트 코드를 강제화 할 수 있는 Spring REST Docs를 사용하겠습니다. 공식문서와 다른 분들이 적용한 예시를 보고 포스팅을 작성해보겠습니다. Swagger vs Spring REST Docs https://junuuu.tistory.com/318?category=997278 API 문서화를 위한 Swagger와 Spring Rest D..