본문 바로가기

분류 전체보기

(341)
Spring Boot/Gradle) gradle build시 에러 발생/ FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':test'. 로컬에서는 잘 실행되던 프로젝트가 우분투 서버에 올려두고 gradle build를 하려니 아래와 같이 fail 뜬다. 1 test completed, 1 failed FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':test'. > There were failing tests. See the report at: file:///home/tp/tp-platform/build/reports/tests/test/index.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to ge..
Spring Boot) H2 데이터베이스 적재 문제 해결 / error creating bean with name 'datasourcescriptdatabaseinitializer' defined in class path resource [org/springframework/boot/autoconfigure/sql/init/datasourceinitializationconfiguration.class] /src/main/resource 폴더 하위에 schema.sql 파일 : 테이블 생성 sql 스크립트 작성 data.sql 파일 : 테이블에 데이터 insert 하는 스크립트 작성 spring.h2.console.enabled=true spring.h2.console.path=/h2-console spring.datasource.url=jdbc:h2:tp://localhost/(...) spring.datasource.username=username spring.datasource.password= spring.h2.console.settings.trace=false spring.h2.console.settings.web-allow-others=true spring.datasource.initializ..
Spring Boot) vscode에서 gradle로 jar 파일 빌드해서 실행시키기 vscode marketplace에서 gradle을 검색해서 다음과 같은 플러그인을 설치하면 왼쪽 사이드바에 코끼리 아이콘이 생깁니다. 코끼리 아이콘을 누르면 GRADLE 툴바가 왼쪽에 뜨는데 여기서 build/bootJar을 클릭하면 자동으로 빌드되어 프로젝트 파일 build/lib에 jar 파일이 생성됩니다. 생성된 jar 파일을 실행시킬 서버에 옮겨두고 (optional) jar 파일이 있는 폴더에서 터미널을 켜서 아래와 같은 명령어로 실행시키면 됩니다. java -jar
Spring Boot) 현재 페이지의 URL주소 가져오기 import javax.servlet.http.HttpServletRequest; ....HttpServletRequest request 선언 필요 아래와 같은 주소가 있을 경우 : http://localhost:8080/template/category1 //http://localhost:8080/template/index.jsp request.getRequestURI(); // 프로젝트 경로부터 파일까지의 경로 값 ex) /template/index.jsp request.getContextPath(); // 프로젝트의 경로값만 가져옴 ex) /template request.getRequestURL(); // 전체 경로 가져옴 ex)http://localhost:8080/template/index.jsp..
[컴퓨터 네트워크] acronym 총정리 ARP : Address Resolution Protocol TCP : Transmission Control Protocol 세그먼트 three-way handshaking 송수신측 모두 윈도우를 각각 가지고 있음 RTO : Retransmission Time Out RTT : Round Trip Time rnwd : receive windoe cnwd : congestion window → 사이즈는 min(rnwd, cnwd) slow start : cwnd++(1씩 증가시킴), increase additively fast recovery : cwnd + (1/cnwd), sshtresh 를 넘으면 exponentail increas Taho TCP 시작은 cwnd = 1, ssthresh는 cwnd ..
[컴퓨터 네트워크] 네트워크 계층 기본 개념 정리 1. Service of network layer 1.1 Packetizing Encapsulating 송신지에서 상위 계층에서 받은 데이터(=페이로드)를 네트워크 계층 패킷에 담는 것 너무 크면 쪼개서 쪼갬 fragmentation Decapsulating 수신지에서 전달받은 패킷으로부터 페이로드를 꺼내는 것 라우터나 송신지에서 패킷을 쪼개서 보내는 경우 모든 조각들이 도착할 때까지 기다렸다가 재조립하고 상위 계층으로 전달 1.2 Routing 물리적으로 네트워크의 조합되어 사용되기 때문에 하나 이상의 송수신지가 경로에 존재함 따라서 여러 경로 중 최적의 경로를 찾아줌 1.3 Forwording 라우터 input → output 으로 패킷 이동시키는 것 이때 포워딩 테이블 참조해서 적절한 수신지로 보냄..
Week14) Java Programming Lab : Socket Programming References 성균관대학교 소프트웨어학과 타메르 교수님
Week13) 데이터 큐레이션 실습 : Preservation Action 데이터 보존하기 데이터 이전 (migration) + 재평가 (re-appraisal) 1. 데이터 보존하기 데이터의 권위적인 상태 유지를 위해 장기 보존과 유지를 보장하는 과정 목적 : 데이터 무결성 진실성 신뢰성 유지 주요 활동 데이터 정리하기 확인하기 보존 메타데이터 부여 표현 정보 부여 수용 가능한 데이터 구조 또는 파일 형식 보장 2. 이전 Migration 데이터 보존 방식의 일종 데이터 장기적 보존을 위해 필요한 활동 비정기적 활동 데이터 이전은 미디어 사용 만료, 기술적 지원 만료 등의 이유로 이전하는 것 3. 보존의 목표 authenticity 진실성 데이터 조작, 위조, 대체되지 않음 원본 유지 integrity 무결성 추가적인 조작이 없는 상태 longevity 지속성 현재 미래 모두 데이터 이용 가..