본문 바로가기

TIL

(10)
[SpringBoot]비동기 Async는 프록시 기반 동작 👉 에러 비동기(@Async) 실행을 위한 TaskExecutor를 찾지 못하는 문제 NFO 13248 --- .s.a.AnnotationAsyncExecutionInterceptor : More than one TaskExecutor bean found within the context, and none is named 'taskExecutor'.   Mark one of them as primary or name it 'taskExecutor' (possibly as an alias) in order to use it for async processing: [clientInboundChannelExecutor, clientOutboundChannelExecutor, brokerChannelExecu..
[Chocolatey] An existing Chocolatey installation was detected. 👉 에러경고: An existing Chocolatey installation was detected. Installation will not continue. This script will not overwrite existing installations. If there is no Chocolatey installation at 'C:\ProgramData\chocolatey', delete the folder and attempt the installation again. 👉 원인관리자 권한으로 실행해서 설치했는데도 위와 같이 오류가 뜬다면 이미 설치된 적이 있어 폴더를 삭제 후에 재설치 해보라고는 것이다. 해당 폴더 주소를 검색해서 찾아보면 폴더만 생성되고 내부에 비어 있는 상태일 것이다폴더 ..
[SpringBoot] failed to lazily initialize a collection of role: could not initialize proxy - no Session 👉에러 상황 먼저 에러는 Post 목록 조회할 때 발생했습니다. Post와 Like는 1:N 양방향 연간관계를 맺고 있습니다. - Post 엔티티 구성 package com.duktown.domain.post.entity; import com.duktown.domain.BaseTimeEntity; import com.duktown.domain.comment.entity.Comment; import com.duktown.domain.like.entity.Like; import com.duktown.domain.user.entity.User; import com.duktown.global.type.Category; import lombok.AllArgsConstructor; import lombok.Buil..
[Node] getaddrinfo ENOTFOUND your-proxy-server 👉 에러 npm ERR! code ENOTFOUND npm ERR! syscall getaddrinfo npm ERR! errno ENOTFOUND npm ERR! network request to https://registry.npmjs.org/npm/-/npm-8.5.1.tgz failed, reason: getaddrinfo ENOTFOUND your-proxy-server npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! networ..
[SpringBoot] No acceptable representation 이슈 👉 요청 쿼리문은 제대로 실행되었지만 "status": 406,"error": "Not Acceptable" 발생 ResponseDto로 변환 중 클라이언트가 지원하지 않는 미디어 타입을 요청했을 때 발생합니다. 에러 메시지에 따르면, 클라이언트가 허용되지 않는 미디어 타입인 application/*+json을 요청한 것으로 보입니다. 클라이언트의 요청이 변경되지 않았거나 수정할 수 없는 경우, 서버에서 클라이언트의 요청을 처리할 수 있는 적절한 미디어 타입을 반환할 수 있는지 확인해야 합니다. 클라이언트의 요청을 처리할 수 있는 미디어 타입이 없는 경우, 서버에서 오류를 처리하고 적절한 오류 응답을 반환해야 합니다. 에러 👉[org.springframework.web.HttpMediaTypeNot..
[Docker] Docker failed to initialize 👉이슈1 :어제까지 잘 사용하던 도커 데스크탑이 갑자기 에러 메세지를 띄워준다. 👉 해결방법 C:\Users\user\AppData\Roaming\Docker 폴더 내 위치한 settings.json을 삭제합니다. settings.json을 삭제하면 아래와 같이 토커 설치 창이 나타납니다. Accept 버튼을 눌러서 다시 설정을 설치해주세요. 👉이슈2 : 도커데스크탑 설정이 다시 세팅 후 도커데스크탑을 실행하면 아래와 같이 Starting the Docker Engine창이 실행되는데, 만약 저처럼 무한 로딩을 진행한다면 이는 WSL error 때문입니다. 한참 기다리가다 결국 Unexpected WSL error 발생했습니다. 👉 해결방법 Windows 기능에서 Windows 하이퍼바이저 플랫폼이 켜져..
[Docker] denied: requested access to the resource is denied 이슈 👉 dockerhub에 도커 이미지 파일을 push하려는 과정에서 발생. docker login을 하면 denied: requested access to the resource is denied 이런 오류가 발생하지 않는데, 이상하게 로그인 성공으로 콘솔에 나와도 접근권한 문제 발생 에러 👉 denied: requested access to the resource is denied 해결 👉 1. 로그아웃 이후 다시 로그인 2. 도커 이미지명을 도커 허브 레포지토리명과 동일하게 명시,이때 계정명이 들어가야 함. 3. 구글 이메일로 도커 회원가입 한 계정에서 비밀번호 재설정
프로그램 명명 규칙 - 표기법 카멜케이스, 파스칼케이스, 스네이크 케이스,로웨 케이스 모두 프로그래밍에서 주로 사용하는 명명 규칙! 표기법들은 제한된 프로그래밍 환경에서 가독성을 끌어올리려는 시도중에 하나로 시작되었다. 변수, 함수, 클래스 등의 명명 규칙을 지정하는 방식이다. 1. 카멜케이스 (Camel Case) 각 단어의 첫 글자는 대문자로 시작하며, 나머지는 소문자로 표기하는 규칙 변수,함수,메서드,속성 등의 이름에 주로 사용 단어의 첫 글자를 소문자로 시작, 단어 사이 구분 첫 글자를 대문자를 사용 String myVariableName pubilc int findById(){...} 2. 스네이크케이스 (Snake Case) 모든 단어를 소문자로 작성하며, 단어 사이를 언더스코어(_)로 구분합니다. 단어의 첫 글자를 소문자..