묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 핵심 원리 - 기본편
강좌 : 프로토타입스코프
강좌 : 프로토타입스코프 9분에서싱글톤이랑 프로토타입을 같이 사용하지 말라는건 알겠는데 혹시 클라이언트빈과 싱글톤을 같이 사용하지 말라는건가요?
-
미해결파이썬(Python)으로 데이터 기반 주식 퀀트 투자하기 Part1
파일 설치시 오류 메세지
다음과 같은 오류메세지는 무슨 뜻인가요?학습을 진행하는데, 문제가 없는지 궁금합니다.
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
Thymeleaf 기본 객체들 강의 질문
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오) 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) 예[질문 내용]기본 객체들 중 request response session servletContent는 더이상 사용이 안된다고 에러 메시지가 나오던데요 확인 가능할까요? The 'request','session','servletContext' and 'response' expression utility objects are no longer available by default for template expressions and their use is not recommended. In cases where they are really needed, they should be manually added as context variables. at org.thymeleaf.standard.expression.StandardExpressionObjectFactory.buildObject(StandardExpressionObjectFactory.java:207) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE] 공식 문서를 보니깐 ctx.session 이런식으로 붙이라고 나와서 붙이니깐 에러는 안뜨는데 request response servletContent는 내용이 안뜨네요 세션은 뜨는데 좀 다르게 뜨고
-
미해결이득우의 언리얼 프로그래밍 Part2 - 언리얼 게임 프레임웍의 이해
헤더를 사용하지 않고 BeginPlay 동작 안하는 문제.
// Fill out your copyright notice in the Description page of Project Settings. #include "Game/ABGameMode.h" #include "ABGameMode.h" //#include "Player/ABPlayerController.h" AABGameMode::AABGameMode() { UE_LOG(LogTemp, Warning, TEXT("inflearn1")); static ConstructorHelpers::FClassFinder<APawn> ThirdPersonClassRef(TEXT("/Game/ThirdPerson/Blueprints/BP_ThirdPersonCharacter.BP_ThirdPersonCharacter_C")); if (ThirdPersonClassRef.Class) { DefaultPawnClass = ThirdPersonClassRef.Class; } static ConstructorHelpers::FClassFinder<APlayerController> PlayerControllerClassRef(TEXT("/Script/ArenaBattle.ABPlayerController")); if (PlayerControllerClassRef.Class != nullptr) { UE_LOG(LogTemp, Warning, TEXT("PlayerControllerClassRef.Class found: %s"), *PlayerControllerClassRef.Class->GetName()); PlayerControllerClass = PlayerControllerClassRef.Class; } else { UE_LOG(LogTemp, Error, TEXT("PlayerControllerClassRef.Class not found.")); } //PlayerControllerClass = AABPlayerController::StaticClass(); } 위 코드를 입력했을 때 실행 결과는 아래와 같습니다.제가 경로를 잘못 넣었다기에는 수업자료를 그대로 복붙도 해보았으며 /Script/CoreUObject.Class'/Script/ArenaBattle.ABPlayerController'위 경로 또한 5초전에 레퍼런스를 복사해 온 경로입니다
-
미해결이득우의 언리얼 프로그래밍 Part2 - 언리얼 게임 프레임웍의 이해
프로젝트 재실행시 어떤 작업을 해주어야하나요?
프로젝트를 재실행하게 되면 월드세팅에서 GameMode를 바꾸어 설정해주었던 작업들이 모두 풀려버립니다콘텐츠 드로어(브라우저)에 클래스가 나타나지 않는 오류Ctril+Alt+F11을 입력하면 해결될까 싶어 시도했을때는 크래시가 발생하면서 진행할 수 없어집니다.
-
미해결김영한의 자바 입문 - 코드로 시작하는 자바 첫걸음
while문 문제와 풀이 질문입니다(짝수 출력)
안녕하세요~이렇게 코드를 짜면 값이 안나오는데 왜일까요?num을 1로 했더니 결과가 안나와서 찾아보니int가 정수 라서 실행이 안된다길래int를 2로 잡고 돌렸는데도 값이 2만 나옵니다.뭐가 문제인가요? 그리고 코드를 이렇게 짰는데값은 강의 내용과 동일하게 나옵니다.강의에서는 num과 count 두 변수를 이용하던데이유가 있나요?코딩 강의 처음 들어보는 초보자라왕초보 기준으로 설명해주실 수 있을까요😔
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
런 버튼 비활성화
=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예)[질문 내용]jdk 17, 스프링부터 3.2 모두 강의자료에 나온대로 설치 후 진행하는데, 동작확인 부분에서 실행(run)버튼이 안나옵니다.삭제 후 재설치 해도 안되는데뭐가 문제일까요? 무료버전입니다.
-
미해결멀티OS 사용을 위한 가상화 환경 구축 가이드 (Docker + Kubernetes)
수업전부 다 듣고 나서 질문이 생겼습니다!
virtual box랑 공식문서를 통해서만 진행했을때 오류 때문에 힘들었는데 수업에서 vagrant/terminus 랑 제공해주신 자료덕에 ( SSH private key 지연 문제는 있었지만 .. )성공할 수 있었습니다! 조금 더 활용해 보고 싶어서 시도하다 질문 드립니다. 강의에서는 로컬에서 마스터 노드 , 워커 노드 2개를 한 컴퓨터 내에서 만들었는데 , 혹시 이걸 a 컴퓨터에서는 마스터 노드를 b 컴퓨터에서는 워커노드만 존재하도록 분리할 수 있을까요?? aws, gcp 같은 크동일 네트워크 대역. 가상환경으로만 진행했을때 가능한 지 궁금합니다!++ 수업내용과는 살짝 벗어나긴 했지만 관련해서 같은 네트워크 대역으로 연결할 때ingress , ingress controller , 스케쥴러 ? 들을 통해서 연결할 수 있는지 질문드립니다!( 구글링하다 알게된 개념들이라 정확하지 않을 수 있을것 같습니다 )
-
해결됨[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)
선생님 감사합니다
목소리도 나긋해서 듣기 좋았고강의 내용 구성도 알차서 많이 배울 수 있었습니다.덕분에 좋은 강의 듣고 시험에 합격할 수 있었습니다선생님께 배울 수 있어서 감사했습니다!
-
미해결김영한의 실전 자바 - 기본편
객체를 따로 생성해주는 이유
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]ProductOrderMain2package ref.ex; public class ProductOrderMain2 { public static void main(String[] args) { ProductOrder[] orders = new ProductOrder[3]; orders[0] = createOrder("두부", 2000, 2); orders[1] = createOrder("김치", 5000, 1); orders[2] = createOrder("콜라", 1500, 2); printOrders(orders); int totalAmount = getTotalAmount(orders); System.out.println("총 결제 금액: " + totalAmount); } static ProductOrder createOrder(String productName, int price, int quantity) { ProductOrder order = new ProductOrder(); order.productName = productName; order.price = price; order.quantity = quantity; return order; } static void printOrders(ProductOrder[] orders) { for (ProductOrder order : orders) { System.out.println("상품명: " + order.productName + ", 가격: " + order.price + ", 수량: " + order.quantity); } } static int getTotalAmount(ProductOrder[] orders) { int totalAmount = 0; for (ProductOrder order : orders) { totalAmount += order.price * order.quantity; } return totalAmount; } }왜 ProductOrder order = new ProductOrder();을 통하여 객체를 새로 생성 해주는지 궁금합니다.ProductOrder[] orders = new ProductOrder[3];를 통해 배열을 만들었고, 배열도 객체라고 기억하고 있습니다.위에서 배열(객체)를 만들었는데 왜 객체를 또 만들어주나요?배열은 객체의 참조값만 저장이 되기 때문에 객체를 따로 생성해서 따로 생성한 객체에 값을 넣어줘야하기 때문이라고 이해했는데, 제가 이해한 내용이 맞을까요?
-
미해결자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비
RunTimeError가 발생하는 이유를 알려주세요..
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int cnt = sc.nextInt(); String pw = sc.next(); pw = pw.replaceAll("#","1").replaceAll("/*","0"); String answer = ""; for(int i=0 ; i<cnt*7 ; i+=7){ char target =(char)Integer.parseInt(pw.substring(i,i+7),2); answer +=target; } System.out.println("answer = " + answer); } }콘솔창 : IntellJ에서는 직접 값을 입력하면 잘 뜨는데 강사님의 채점 프로그램에서는 작동하지 않습니다... 뭐가 문제일까요
-
미해결
Dive into Luxury: A Guide to Building Your Own In-Ground Pool
The dream of having a personal oasis in the backyard is a desire shared by many homeowners. Building your own in-ground pool is a thrilling project that not only adds value to your property but also provides a haven for relaxation and recreation. This comprehensive guide will walk you through the steps, considerations, and precautions to turn your dream pool into a reality.1. Dream and Design:Before you break ground, envision the pool of your dreams. Consider the available space, your budget, and the purpose of the pool. Do you want a classic rectangle, a freeform design, or perhaps a spa integrated into the pool? Take inspiration from various sources and work with a professional pool designer to bring your vision to life.2. Regulations and Permits:Navigate the bureaucratic waters by checking local regulations and obtaining the necessary permits. Zoning laws, setback requirements, and safety standards vary by location. Engaging with your local municipality early in the process ensures that your project complies with all legal and safety requirements.3. Budgeting:Establish a realistic budget that accounts for construction costs, landscaping, and ongoing maintenance. Factor in potential unexpected expenses and leave room for contingencies. Knowing your financial boundaries from the start will guide decision-making throughout the project.4. Choose Your Pool Type:Select the pool material that aligns with your budget, preferences, and climate. Concrete pools offer customization, fiberglass provides quick installation, and vinyl is a more budget-friendly option. Each material has its pros and cons, so weigh them carefully before making a decision.5. Find Your Team:Hiring professionals is crucial for a successful pool project. Choose a reputable pool contractor with experience in in-ground pool construction. Collaborate with experts in excavation, plumbing, and electrical work. Their expertise will ensure that your pool is not only beautiful but also functional and safe.6. Construction Begins:Once the planning is complete, the real work begins. Excavation is a critical phase, shaping the pool's foundation. Concrete pools require formwork and pouring, while fiberglass pools come pre-formed. Plumbing and electrical work follow, establishing the essential infrastructure for filtration, heating, and lighting.7. Finishing Touches:With the structure in place, it's time for the aesthetic elements. Choose coping materials that complement your design, and decide on decking that enhances both form and function. Landscaping around the pool completes the picture, turning it into a harmonious part of your outdoor space.8. Install Systems for Comfort:Invest in quality filtration and heating systems. A reliable filtration system keeps the water crystal clear, while a heating system extends the swimming season. Consider energy-efficient options to minimize operational costs in the long run.9. Compliance and Safety:Before you fill your pool with water, ensure that it meets all local building codes and safety standards. Schedule final inspections to obtain the necessary approvals. Implement safety measures, such as fencing and alarms, to protect your loved ones.10. Dive In and Enjoy:With construction complete and all regulatory boxes checked, it's time to revel in the joy of your own in-ground pool. Establish a regular maintenance routine to keep your pool in top condition and invest in pool covers and cleaning equipment to make upkeep more manageable.Building your own in-ground pool is a thrilling adventure that combines creativity, engineering, and a touch of luxury. With meticulous planning, a skilled team, and adherence to safety guidelines, you can transform your backyard into a private retreat that will be enjoyed for years to come. So, don your swim gear and dive into the fulfillment of your aquatic dreams!
-
미해결[입문] Qt 6 프로그래밍 2편
크로마키 영상처리 소스코드 구현 (2/2편) 에러가 발생합니다.
크로마키 영상처리 소스코드 구현 (2/2편)까지 모든 코드를 작성하였습니다. 에러 나는 위치는 pSourceData를 가져오는 부분이고에러 메시지는입니다.
-
미해결파이썬(Python)으로 데이터 기반 주식 퀀트 투자하기 Part1
질문이 있습니다.
3:40초 쯤 해당 셀을 그대로 실행하면 tuple 대신 list를 쓰라는 에러가 발생합니다.뒷 부분 ['rtn', 'ROE(%)'] 부분을 [['rtn', 'ROE(%)']] 으로 수정해야 코드가 정상 작동이 됩니다. 질문1. 대괄호로 감싸고 있는 이 부분도 tuple이라고 부를 수 있나요? 질문2. 선생님과 다르게 실행이 안되는 이유가 버전 차이일까요? 이유가 궁금합니다. - 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! (스크린샷이 있으면 더더욱 좋습니다)- 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
트랜잭션의 시작을 모르겠습니다
강의를 듣다보니 Api를 사용하기 위해 만든 Controller에서는 @Transactional 어노테이션이 포함된 Service를 아예 사용 안해서 트랜잭션의 시작을 어디로 봐야 될지 모르겠어서요1.@Transactional 어노테이션을 달고있는 메서드의 시작이 트랜잭션의 시작이고,또한 em를 통해서 createQuery나 persist를 하는 것은 em코드가 포함된 메서드가 트랜잭션의 시작인건가요?2.그리고 컨트롤러는 컨트롤러에 남겨두고 내부 로직이 있으면 빼내서 클래스로 만들어서 @Transactional(readOnly = true)로 설정해서 컨트롤러에서 쓰면컨트롤러는 그대로 있고, 내부의 로직을 트랜잭션 어노테이션으로 묶는건가요? 3.2번이 맞게 이해한거면 ApiController에 있는 컨트롤러에 바로 @Transactional을 붙이면 OSIV를 꺼도 작동되는데이렇게 컨트롤러에 바로 붙이면 OSIV를 킨거와 같은 경우가 되는거 아닌가요?
-
해결됨스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
DTO를 작성할 때 lombok 어노테이션 대신 record를 사용해도 되나요?
이번에 자바를 공부하면서 record에 대해서 알게 되었는데요DTO를 작성할 때 사용할 목적으로 만들어졌다고 하더라구요그렇다면 lombok 어노테이션 대신 record를 사용해도 되는건가요?spring에서 사용해도 괜찮은지 모르겠어서 질문드려요
-
해결됨[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)
합격시켜주셔서 감사합니다.
안녕하세요.선생님 덕분에 이번 7회 실기 95점으로 합격했습니다.첫번째 도전때 무기력하게 불합격하고 어떻게할지 모르던 와중에 우연히 선생님 강의 듣게되어 운좋게 합격했습니다:)운좋게 합격했지만 이번 시험을 계기로 제가 많이 부족하다는 걸 느끼고 선생님의 다른 강의도 수강해보려 합니다!다시한번 합격시켜주셔서 감사합니다:)
-
미해결김영한의 실전 자바 - 기본편
[method] static vs public static
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]안녕하세요.참조형과 메서드 호출 강의를 듣다 궁금점이 생겨서 문의 남깁니다.MethodChange2.javapackage ref; public class MethodChange2 { public static void main(String[] args) { Data dataA = new Data(); dataA.value = 10; System.out.println("메서드 호출 전: dataA.value = " + dataA.value); changeReference(dataA); System.out.println("메서드 호출 후: dataA.value = " + dataA.value); } private static void changeReference(Data dataX) { dataX.value = 20; } Method2.javapackage ref; public class Method2 { public static void main(String[] args) { Student student1 = createStudent("학생1", 15, 90); Student student2 = createStudent("학생2", 16, 80); printStudent(student1); printStudent(student2); } static Student createStudent(String name, int age, int grade) { Student student = new Student(); student.name = name; student.age = age; student.grade = grade; return student; } static void printStudent(Student student1) { System.out.println("이름:" + student1.name + " 나이:" + student1.age + " 성적:" + student1.grade); } } MethodChange2의 changeReference 메소드는 private static인데, 왜 Method2의 printStudent 메소드는 static인지 이유가 궁금합니다.
-
미해결스프링 핵심 원리 - 기본편
MemberApp에서 Bean에서 불러오는 과정에서 스프링으로 실행이 안되는 것 같아 질문 드립니다.
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예)[질문 내용]Spring Bean이란 정확이 어떤 개념인가요?제가 이해한 Bean은 스프링 컨테이너가 관리해주는 하나의 객체 or 클래스 라고 이해했는데. 영한님 강의에서 본 것 과 같이 스프링 컨테이너란 객체를 생성해서 의존성을 주입해주는것, 생명주기관리 등을 담당하는것이며 빈은 스프링 컨테이너에 의해 관리 당하는 객체인가요? 빈에 대해 이해하고싶습니다. 영한님 강의를 듣고 똑같이 구현결과 제 컴파일러에서는 Bean과 관련된 로그가 안뜹니다https://drive.google.com/file/d/1_Wm8yj0VdLKFo-JI6aNlBo67jN2ctb1U/view?usp=drive_link강의를 듣는 중에 똑같이 실행을 했는데 빈에서 불러오는 로그가 뜨지 않아서 괜찮은건지 질문드립니다. MemberApp과 OrderApp둘 다 동일한 증상이 나타납니다. 인텔리제이를 사용하지 않는 이유는 군대 사지방이라 깔지를 못합니다..ㅜ @Bean(name="otherName")이렇게 해서 Run해보면 오류가 나서 Bean으로 잘 된 것 같은데 혹시 몰라서 질문 드립니다.
-
해결됨그림으로 쉽게 배우는 자료구조와 알고리즘 (기본편)
유효성 검사에 대해 질문이 있습니다.
좋은 강의 만들어주셔서 감사합니다.몇몇 메서드가 실행될 때 인덱스의 유효성 검사를 진행하는데, 이 부분의 로직이 완전히 같은 상황이니 유효성 검사 메서드를 따로 생성해서 리팩토링 하는 것도 좋은 방법일까요?