묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 핵심 원리 - 기본편
spring 3.x 버전 오버라이딩 로그 변화
안녕하세요. 정말 궁금한 부분이 있어서, 질문 글을 올리게 되었습니다. 결론부터 말하면 오버라이딩 로그가 최신 버전에서는 다르게 출력되고 앞으로 이런 변하는 어떡해 알아가야 하나요? 강의에서는 스프링부트 2.x 버전으로 되어있어 오버라이딩 메시지가 명확합니다. ㄴ 빈에서 오버라이딩이 발생하면 메시지로 명확하게 알려줌하지만 개인 프로젝트에서는 스프링부트 버전은 3.x로 되어 있어서 오버라이딩 메시지가 명확하지 않습니다. ㄴ 명확하게 오버라이딩 메시지가 나타나지 않고, 다른 메시지로 표기됨 스프링 부트를 다운그레이드 하여 2.x로 하면 명확한 오버라이딩 메시지를 확인가능 하지만 업그레이드를 3.x로 진행하면 명확한 오버라이딩 메시지를 확인할 수 없습니다. 아주 사소한 변화라고 생각할 수 있지만, 이러한 변환된 정보는 어떡해 얻을 수 있을까요?spring 공식문서를 뒤적 거려봤지만 해당 내용을 쉽게 찾을 수 없습니다. 학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요. 1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요.
-
해결됨스프링부트로 직접 만들면서 배우는 대규모 시스템 설계 - 게시판
비관적 락 1에 대해서 질문입니다.
안녕하세요 비관적 락에 대해서 잘 배우고 있습니다.비관적 락1이 단순히 네이티브 쿼리를 이용하여 update 문 해서 바로 count를 수정하는건데초반에 알려주신 조회할 때, 조회 락이 안 걸려서 데이터 일관성이 깨지는 거 알려주셨는데 비관적 락 1은 조회 자체를 생각하고 바로 갱신만해서 좋아요 수 카운트를 하는 건가요?만약에 그렇다면 업데이트 시 락이 걸려 다른 트랜잭션 접근이 안되어 일관성이 유지가 되는 것은 이해가 갑니다.테스트시 100번 동시 접근할 때 비관적 락2처럼 정합성이 보장되는거면 굳이 1이 더 빠르고 정확할텐데 비관적 락2를 쓰는 이유가 궁금합니다.그리고 챗gpt한테 물어보니 단순히 update문하여 수정하는 것은 동시성 접근에 해결책이 안된다고 비관적 락 2쓰라고 하는데 테스트에서는 동시 100개가 접근해도 일관성이 충족이 되는거 보니 어느쪽이 맞는건지 모르겠습니다
-
미해결[React 2부] 고급 주제와 훅
FormControl 컴포넌트 사용시 htmlFor prop 값 넘길 때 중괄호 이유
안녕하세요, 강의 잘 보고 있습니다 😀FormControl 컴포넌트 사용시 htmlFor prop 값 넘길 때 문자열을 중괄호로 감싸서 넘기는데요, "label" prop의 값은 문자열을 그냥 전달하는데, htmlFor의 값은 문자열을 중괄호로 감싸서 전달하는 이유가 뭘까요 ? 그냥 문자열만 보내면 안되는건가요 ?
-
미해결
windows 환경에서 초기 스크립트 실행
git fork 까지 한 이후에 각 repo 들을 git clone으로 자기 로컬PC에 가져오는게 맞나요? 다른 리눅스 서버 따로 띄워서 거기에서 git clone에서 실행해봤는데도, 오류가 발생하네요.시작조차 못하고있어서 난감하네요 ㅠ 도움 부탁드립니다. $ sh bootstrap.sh remove ======= DOCKER_NAME: 1795b1fa01ef An error occurred (UnrecognizedClientException) when calling the DeleteLogGroup operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid. Error: could not create cluster provider from options: checking AWS STS access – cannot get role ARN for current session: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: ac18f37b-ef0c-46f8-b46b-298e078c802c, api error InvalidClientTokenId: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DescribeAutoScalingGroups operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DescribeLaunchConfigurations operation: The security token included in the request is invalid. An error occurred (AuthFailure) when calling the DescribeAddresses operation: AWS was not able to validate the provided access credentials An error occurred (AuthFailure) when calling the DescribeVpcs operation: AWS was not able to validate the provided access credentials VPC_ID: Usage: grep [OPTION]... PATTERNS [FILE]... Try 'grep --help' for more information. An error occurred (InvalidClientTokenId) when calling the DescribeLoadBalancers operation: The security token included in the request is invalid. Usage: grep [OPTION]... PATTERNS [FILE]... Try 'grep --help' for more information. An error occurred (InvalidClientTokenId) when calling the DescribeLoadBalancers operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the ListRoles operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the ListRoles operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteRole operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the RemoveUserFromGroup operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the RemoveUserFromGroup operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteUser operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteUser operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteGroupPolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteGroupPolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteGroup operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteGroup operation: The security token included in the request is invalid. An error occurred (AuthFailure) when calling the DescribeAddresses operation: AWS was not able to validate the provided access credentials Error: could not create cluster provider from options: checking AWS STS access – cannot get role ARN for current session: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f5ec21e1-c705-4e83-8928-2ffd7dd3bb96, api error InvalidClientTokenId: The security token included in the request is invalid. An error occurred (UnrecognizedClientException) when calling the ListKeys operation: The security token included in the request is invalid. An error occurred (UnrecognizedClientException) when calling the ListTables operation: The security token included in the request is invalid. An error occurred (InvalidAccessKeyId) when calling the ListBuckets operation: The AWS Access Key Id you provided does not exist in our records. An error occurred (UnrecognizedClientException) when calling the DeleteLogGroup operation: The security token included in the request is invalid. An error occurred (AuthFailure) when calling the DeleteKeyPair operation: AWS was not able to validate the provided access credentials An error occurred (UnrecognizedClientException) when calling the DescribeRepositories operation: The security token included in the request is invalid. An error occurred (UnrecognizedClientException) when calling the DescribeCluster operation: The security token included in the request is invalid. An error occurred (UnrecognizedClientException) when calling the DeleteRepository operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. ##[ Summary ]########################################################## - in VM export KUBECONFIG='/topzone/kubeconfig_topzone-k8s' - outside of VM export KUBECONFIG='kubeconfig_topzone-k8s' - kubectl get nodes ####################################################################### ##[ Summary ]########################################################## echo You might need to delete these resources. echo VPC: topzone-k8s-vpc echo ECR: ####################################################################### No changes. No objects need to be destroyed. Either you have not created any objects yet or the existing objects were already deleted outside of Terraform. ╷ │ Warning: Value for undeclared variable │ │ The root module does not declare a variable named "instance_type" but a value was found in file ".auto.tfvars". If you meant to use this value, add a "variable" block to the configuration. │ │ To silence these warnings, use TF_VAR_... environment variables to provide certain "global" settings to all configurations in your organization. To reduce the verbosity of these warnings, use the │ -compact-warnings option. ╵ ╷ │ Warning: Value for undeclared variable │ │ The root module does not declare a variable named "k8s_config_path" but a value was found in file ".auto.tfvars". If you meant to use this value, add a "variable" block to the configuration. │ │ To silence these warnings, use TF_VAR_... environment variables to provide certain "global" settings to all configurations in your organization. To reduce the verbosity of these warnings, use the │ -compact-warnings option. ╵ ╷ │ Warning: Values for undeclared variables │ │ In addition to the other similar warnings shown, 3 other variable(s) defined without being declared.
-
미해결바로쓰는 CI/CD on EKS
windows 환경에서 초기 설정 sh 실행
저는 windows 10 환경에서 실습 진행하려는데,초기에 각 repo clone 하는것을 로컬 pc에 해오는게 맞나요?reousrces 설정한 이후에 제 로컬 windows 에서 bootstrap.sh 실행하는게 맞나요? sh자체가 실행할수가 없어서, gitbash 로 실행해봐도 오류가 나네요.windows 기준으로 초기 설정 sh bootstrap.sh 실행을 안내해주시면 감사하겠습니다.
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
4-P질문입니다
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. #include<iostream> #include<algorithm> #include<vector> using namespace std; int n,ret; vector<int> v; stack<int> st; int check(int i,vector<int> &v){ int cnt=0; int mx =0; for(int j = i+1; j<n; j++){ if(v[j]<= v[i]){ if(v[j]>=mx && v[i]>=mx) { cnt++; if(j == i+1) mx = v[j]; else mx = max(mx,v[j]); } else{ break; } } else if(v[j]>v[i]){ cnt++; break; } } return cnt; } int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin>>n; for(int i =0; i<n;i++){ int num; cin>>num; v.push_back(num); } for(int i=0;i<n-1;i++){ ret += check(i,v); } cout<<ret; return 0; } 이 코드에서 예제는 통과하지만 틀리는 이유를 잘 모르겠습니다. 처음에는 스택을 하려고 했다가 매번 특정한 위치에 접근하는 것이 스택은 안되기에무식한 방법으로 풀어보는 시도를 위해 vector를 이용해 보았습니다(번외 질문반례는 순수 노가다를 통해서 찾는건가요? 아님 다른 방법이 있을까요?
-
미해결스프링 시큐리티 완전 정복 [6.x 개정판]
9:28 패턴 3의 경우 마지막으로 설정한 것만 적용되는 것 같습니다.
스프링 부트 3.4.3, 스프링 시큐리티 6.4.3 기준입니다.다음과 같이 설정하게 되면 api/**는 적용되지 않고 oauth/**에만 적용됩니다.http.securityMatchers(matchers -> matchers.requestMatchers("/api/**") ) .securityMatchers(matchers -> matchers.requestMatchers("/oauth/**") );
-
미해결[초급] 찍어먹자! 코틀린과 Spring Security + JWT로 회원가입 만들기
validation 추가하기에 대해 질문
안녕하세요 validation 강의를 듣고 질문 드립니다. 강의 속에서 설명하신대로 하고 postman에서 실행을 하려고 보니 동작은 하는데 비밀번호 조건이 충족되지 않아도 defaultMessage가 뜨지않고 회원가입이 완료되었다는 창이 뜹니다ㅜㅜ @Valid 어노테이션 사용도 다 했는데 뭐가 문제인걸까요?
-
미해결구성 관리 자동화 도구 - 앤서블(Ansible)
anp nginx_install.yml -k 시 오류
질문 답변을 제공하지만, 강의 비용에는 Q&A는 포함되어 있지 않습니다. 다만 실습이 안되거나, 잘못된 내용의 경우는 알려주시면 가능한 빠르게 조치하겠습니다![질문 전 답변]1. 강의 내용과 관련된 질문인가요? [예 | 아니요]2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? [예 | 아니요]3. 질문 잘하기 법을 읽어보셨나요? [예 | 아니요](https://www.inflearn.com/blogs/1719)4. 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.[질문 하기]anp nginx_install.yml -k SSH password: PLAY [Install nginx on Rockylinux] ********************************************* TASK [install epel-release] **************************************************** fatal: [node01]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "module_stderr": "Shared connection to node01 closed.\r\n", "module_stdout": "\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 137} fatal: [node02]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "module_stderr": "Shared connection to node02 closed.\r\n", "module_stdout": "\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 137} PLAY RECAP ********************************************************************* node01 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 node02 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0nginx 설치 시 위와 같은 오류가 나왔는데 node들의 메모리를 1024로 늘려서 해결하였습니다.처음에 어떤 문제인지 몰라 한참을 헤맸는데 다른 분들은 헤매시지 말기를...
-
해결됨웹소켓/STOMP 채팅서비스(spring, vue, redis)
subscribe와 publish시 인증
현재 코드에 if (StompCommand.CONNECT==accessor.getCommand()){ System.out.println("connect 요청 시 토큰 유효성 검증"); String bearerToken = accessor.getFirstNativeHeader("Authorization"); String token= bearerToken.substring(7); Connect 시에만 인증을 요구하는데Stomp 연결 이후 publish와 subscribe 시에는 STOMP에서 인증이 자동으로 되는건가요? 아니면 현재 코드에서 작성하지 않은 것인가요?
-
미해결빅데이터/텍스트마이닝 분석법 (LDA,BERTtopic,감성분석,CONCOR with ChatGPT)
질문드립니다.
안녕하세요 강의 잘듣고 있습니다. 감사합니다.실습 내용 중에 질문이 있습니다.워드클라우드 그리는 예시에서 워드클라우드에서 '했다', '하는', '한다' ,' 밝혔다' 이런 동사 형태가 많이 보이는데 어떻게 해결 해야 할까요?워드클라우드에서 '인공지능'이 '인공', '지능' 으로 분리되어 나타나는데 '인공지능'으로 합쳐서 집계되고 표현되게 하려면 어떻게 하나요?'오늘', '현재', '한국', 오후' 이런 단어는 지우고 싶은데 어떻게 하면 되나요? 전처리 과정을 어떻게 해야하는지 궁금합니다..!답변 부탁드립니다. 감사합니다.
-
미해결엑셀 기초에서 실무까지
1을 16번시 0이 뜨는 거 잘못된 거 아닌가요?
1111111111111111111111을 16번 하면 뒤에 두자리가 00이라고 하셨잖아요 저는 다르게 0이 생길뿐더러셀너비 넓게해도 1을 16번하면 0이 자꾸 뜹니다.저거 1을 16개로 어떻게 만드는지 알고싶습니다. 안된다는 표기인가요?
-
해결됨(2025) 일주일만에 합격하는 정보처리기사 실기
부모 클래스의 메서드 상속 관련 질문2
18:41 유형 8에서는 업캐스팅 형태일때, 메소드를부모: static void display()자식: static void display()위와 같이 선언하여야 하며, 부모 메소드에서 static을 없애면 에러가 난다고 하셨습니다.그렇다면 만약,유형 9와 같이 업캐스팅 형태가 아니고,Child obj = new Child(); 로 인스턴스를 생성하였는데,부모: static void display()자식: void display()와 같은 형태로 메소드가 구성되어 있다면obj.display()를 했을때, 에러가 발생하나요? 자식에도 static이 있어야지 상속이 가능하다는 부분이 업캐스팅일때만 적용되는건지, 업캐스팅이 아니어도 동일하게 적용되는건지 궁금합니다.
-
해결됨(2025) 일주일만에 합격하는 정보처리기사 실기
부모 클래스의 메서드 상속 관련 질문
15:17 부모 클래스의 private 메소드는 자식 클래스로 상속이 불가능 하다고 말씀해주셨습니다. 그렇다면,protected, default의 경우에는 어떤지 궁금합니다.제가 알기론, protected는 하위 클래스까지 상속가능하고, default는 동일 패키지까지 상속 가능하다고 들었는데요.protected와 default는 자식 클래스에 상속이 가능한지 궁금합니다.
-
미해결[라이브 멘토링] 유니티 뱀파이어 서바이벌 장르 모작
init() 2번 실행? 등 스킬 마무리 강의에서 질문 있습니다.
스킬 마무리 강의 수강 후 질문이 있습니다.1. PlayerController에서 init 이 2번 되는 것 같습니다.2. FireBall 은 빈 오브젝트로 해도 되나요?( 코드상 egoswordPrefab에 생성되고 있어요)3. fireprojectile이 Destroy 되지 않아요 ObjectManager - Player 스폰 부분에서 init을 주석 처리해서 했는데 init에서 반복 실행 안 되게 되어 있는 것 같은데 왜 두 번 되나요? 강의에서도 egoSword가 여러 개 생성되어 질문 올려봅니다
-
미해결[매출과 수익성장이 쉬워지는] 실무재무강의
이익 시뮬레이션 자료
강의에서 이익 시뮬레이션 자료 첨부해주신다고 했는데, 어디서 찾을수 있을까요?
-
미해결Practical Testing: 실용적인 테스트 가이드
findProductsBy 메소드에서 왜 Map 을 만들어 찾는지 잘 이해가 안됩니다
private List<Product> findProductsBy(List<String> productNumbers) { return productRepository.findAllByProductNumberIn(productNumbers); } 그냥 이렇게 바로 리턴 해도 되지 않나요??
-
해결됨Practical Testing: 실용적인 테스트 가이드
MockBean Deprecated
@MockBean 이 Spring Boot 3.4.0 버전부터 Deprecated 되었다고 경고를 띄워주는데요이런 경우 @MockitoBean 을 사용하면 되나요?
-
해결됨[백문이불여일타] 데이터 분석을 위한 중급 SQL 문제풀이
4번 문제
SELECT Person.firstname, Person.lastname, Address.city, Address.stateJOIN 후 특정 컬럼을 select할 때, 해당 테이블을 앞에 붙여주지 않아도 상관없을까요?
-
미해결실전! 코틀린과 스프링 부트로 도서관리 애플리케이션 개발하기 (Java 프로젝트 리팩토링)
PDF 문서에 오타가 있어서 알려드립니다.
PDF 문서에 오타가 있어 알려드립니다. divideTest()인데 minus(3)으로 되어 있습니다.