전체 글 썸네일형 리스트형 [Error] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:46016} 엘라스틱 서치를 실행하고 다른 터미널을 켜서 curl localhost:9200 요청을 보냈을 때 Elasticsearch 로그에 찍힌 내용 [2024-02-19T06:07:27,332][WARN ][o.e.h.n.Netty4HttpServerTransport] [DataRAG]received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:56004} 해당 경고 메시지는 HTTPS 채널을 통해 기대하지 않은 평문 HTTP 트래픽을 받았다는 것을 나타냄 일반적으로 보안 문제로 간주되며 Elasticsearch가 .. 더보기 [Springboot] MockMvc를 이용해서 테스트하기 1. 용어 정리 - 목(Mock): 테스트를 위해서 만든 모형 - 모킹(Mocking): 테스트를 위해 실제 객체와 비슷한 모의 객체를 만드는 것 - 목업(Mock-Up): 모킹한 객체를 메모리에서 얻어내는 과정 2. 서블릿 컨테이너 모킹 Controller를 테스트할 때 서블릿 컨테이너를 모킹을 위해 @WebMvcTest 또는 @AutoConfigureMockMvc 사용함 스프링 3.2부터 스프링 프레임워크는 스프링 MVC를 모킹하여 웹 애플리케이션을 테스트하는 아주 유용한 기능을 제공한다. 이 기능으로 실제 서블릿 컨테이너에서 컨트롤러를 실행하지 않고도 컨트롤러에 HTTP 요청을 할 수 있다. 스프링 Mock MVC 프레임워크는 애플리케이션을 마치 서블릿 컨테이너에서 실행하는 것처럼 스프링 MVC를 .. 더보기 [Springboot] Spring Rest Docs 적용(1) - build.gradle 빌드 구성 1. Spring Rest Docs? Spring 기반의 RESTful API 프로젝트에서 API 문서를 생성하기 위한 도구 2. 프로젝트 빌드 구성 // build.gradle plugins { (1) id "org.asciidoctor.jvm.convert" version "3.3.2" } configurations { asciidoctorExt (2) } dependencies { asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor:{project-version}' (3) testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:{project-ve.. 더보기 [error] 다음 경로는 .gitignore 파일 중 하나 때문에 무시합니다 git add . 다음 경로는 .gitignore 파일 중 하나 때문에 무시합니다: build 힌트: Use -f if you really want to add them. 힌트: Turn this message off by running 힌트: "git config advice.addIgnoredFile false" 찾아보니 git add * 명령은 gitignore된 것들 까지 스테이징에 올린다는 명령어라서 발생하는 에러라고 하는데 git add .이나 git add * 이나 같은 에러가 발생됨 git add * 다음 경로는 .gitignore 파일 중 하나 때문에 무시합니다: build 힌트: Use -f if you really want to add them. 힌트: Turn this message.. 더보기 [Error] Nginx 504 Gateway Time-out nginx 설정 파일에서 timeout 시간 설정을 해주면됨 server { listen 55247; listen [::]:55247; server_name nginx-server; location / { proxy_pass http://172.17.0.1:58080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 180; } client_max_body_size 10M; } 더보기 [Error] nginx 413 Request Entity Too Large 서버 허용량보다 더 큰 용량을 요청했을 때 발생하는 에러 nginx 설정파일에 client_max_body_size 설정 추가 GNU nano 7.2 /etc/nginx/conf.d/default.conf server { listen 55247; listen [::]:55247; server_name nginx-server; location / { proxy_pass http://172.17.0.1:58080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto .. 더보기 [Python] 아나콘다 설치 1. 패키지를 최신 버전으로 업데이트# ubuntusudo apt update# centossudo yum update 2. curl 패키지 설치# ubuntusudo apt install curl -y# centossudo yum install curl -y 3. curl을 이용하여 원하는 아나콘다 버전 설치아나콘다 버전 확인: https://repo.anaconda.com/archive/ Index of /Anaconda-1.6.1-Linux-x86.sh 247.1M 2013-07-02 11:59:07 745b9452fd18720deefb465a6687c0d66df8f11edceadcee758082dea1b8e812repo.anaconda.com curl --output anaconda.sh h.. 더보기 [Error] Error parsing HTTP request header INFO 7673 --- [nio-8080-exec-1] [] o.a.coyote.http11.Http11Processor : Error parsing HTTP request header Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x000xee0x010x000x000xea0x030x03H0xe70xd30x9b0xea0x900xd60x120x900xd50xe40x0fS0xd90xef0x900x8c0x8b0xcb`0x020x9fi0xd70.. 더보기 이전 1 ··· 10 11 12 13 14 15 16 ··· 82 다음