묻고 답해요
160만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
- 
      
        
    미해결[NarP Series] MVC 프레임워크는 내 손에 [나프1탄]03. MySQL 설치 및 접속하기에서mysql 에서 startup 을 켠상태에서 cmd 켜서는 sql 연결이 잘되는데 끄면 안됩니다. 수업진행하는데 문제가 될까요? 
- 
      
        
    해결됨그림으로 쉽게 배우는 네트워크FTP, SMTP같은 프로토콜에 대해 질문이 있습니다.안녕하세요, 네트워크 프로토콜에 대해서 공부하다가 궁금한 점이 있어서 이렇게 질문을 남깁니다. 예를 들어, FTP 같은 경우 파일 서버와 클라이언트 간의 통신을 하는 프로토콜이라고 이해하였는데요, 여기서 혼동되는 점은 저희가 흔히 프로그램을 다운받을 때, http example.com 웹 사이트로 접속해서 .exe 파일 등을 내려 받지 ftp example.com 와 같은 주소로 접근해서 다운을 받지 않는 것 같아서 왜 프로토콜이 나뉘었는지 궁금합니다. 또한 메일서버 역시 마찬가지 입니다.저희가 메일을 보낼 때 http로 example@inf.com 으로 해서 보내는데, IMAP이나 POP3 로 메일을 보냈던거 같지는 않아서요... 내부적으로 동작하고 있는 건지 헷갈립니다. 
- 
      
        
    해결됨외워서 끝내는 네트워크 핵심이론 - 기초Socket I/O 질문이 있습니다.[※중요] 이해하면 인생이 바뀌는 TCP/IP 송·수신구조12:49초 때 설명해주신 내용인데 이해가 부족해서 질문을 남깁니다. 프로세스가 TCP/IP 통신을 하기 위해서 커널 프로그램중 TCP를 추상화하여 인터페이스 Socket과 IO를 합니다.프로세스가 보조 기억장치에서 이미지 a.bmp를 가져올때 프로세스가 OS에게 할당 받은 가상 메모리에 카피를 한다고 이해를 했습니다.그러면 Socket에게 Send 할때 Socket도 버퍼에 카피를 한다고 말씀해주셨는데 카피를 한다는건 메모리에 기록을 한다는 말로 이해를 했는데그러면 소켓도 하나의 프로세스로 보고 메모리를 할당받은건가요 ? 
- 
      
        
    해결됨리눅스 입문 - 개념으로 탄탄히!!리눅스 링크 관련 질문먼저 질문이 반복되고 꼬리를 무는점이 있는점 죄송합니다. 제가 이해력이 부족해서 양해 부탁 드립니다. ai답변에서링크에 따라 파일을 보는 방법은 링크된 파일의 속성에 따라 다르게 볼 수 있습니다. 예를 들어, vi로 열린 소프트링크는 연결된 원본 파일을 편집할 수 있고, view로 열린 소프트링크는 파일을 읽기 전용으로 보여줍니다.라고 하셔셔 해봤는데요 이런거 또한 하드링크로도 가능하지 않나요? 둘이 차이가 있나요?2.하드링크도 이렇게 버전별로 가르킬수 있지 않나요? 그럼에도 소프트 링크를 쓰는 이유가 뭔가요? 
- 
      
        
    미해결스프링 핵심 원리 - 기본편component scan에 관련해서밑에 코드 중에 AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(ClientBean.class, PrototypeBean.class);이 코드가 이해가 안되서 질문 드립니다. 강사님이 이렇게 코드를 작성하면 자동으로 component scan이 된다고 하셨는데, 밑에 ClientBean과 PrototypeBean은 @Component어노테이션이 없습니다. 따라서 @Autowired도 안되는거 아닌가요?? package hello.core.scope; import jakarta.annotation.PostConstruct; import jakarta.annotation.PreDestroy; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Scope; import static org.assertj.core.api.Assertions.assertThat; public class SingletonWithPrototypeTest1 { @Test void singletonClientUsePrototype(){ AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(ClientBean.class, PrototypeBean.class); ClientBean clientBean1 = ac.getBean(ClientBean.class); int count1 = clientBean1.logic(); assertThat(count1).isEqualTo(1); ClientBean clientBean2 = ac.getBean(ClientBean.class); int count2 = clientBean2.logic(); assertThat(count2).isEqualTo(2); } @Scope("singleton") static class ClientBean{ private final PrototypeBean prototypeBean; @Autowired public ClientBean(PrototypeBean prototypeBean) { this.prototypeBean = prototypeBean; } public int logic(){ prototypeBean.addCount(); return prototypeBean.getCount(); } } @Scope("prototype") static class PrototypeBean { private int count = 0; public void addCount() { count++; } public int getCount() { return count; } @PostConstruct public void init() { System.out.println("PrototypeBean.init = " + this); } @PreDestroy public void destroy() { System.out.println("PrototypeBean.destroy"); } } } 
- 
      
        
    미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트8-C 반례 질문안녕하세요 강사님 ㅎㅎhttp://boj.kr/56d99e00ded14c1cacbefe3eb07f6db6위 링크는 강사님의 코드이고 저는 위 코드로 나오는 결과가 통과는 되지만 반례가 있는 것 같아 질문드립니다.해당 문제 게시판에도 저와 비슷하게 생각하신 분의 데이터 추가 요청 글이 있어 첨부하겠습니다.https://www.acmicpc.net/board/view/118371저의 추가 반례입니다.11 2 2 21 59 12제가 생각하는 답 : 11결과 : 71 ~ 11까지 욱제와 영선이의 친구들을 제외한 인원 즉 파티에 초대된 사람들만 세었을 때 합이 T 이상이 되는 경우가 없으니 영선이의 친구들은 나갈 필요가 없습니다.따라서 초반에 바로 영선이의 친구1을 투입시키고 시간 5에 한명이 나갈 때 영선이의 친구 2를 투입시킵니다.그 이후로 시간 11까지 영선이의 친구들이 나갈 필요가 없습니다. 
- 
      
        
    미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진인디게임으로 2D온라인을 만들고싶은데 이 커리큘럼도 들어야하나요?혹시 저는 인디게임으로 2D온라인을 만들고 싶은데 3강 3D 유니티 강의를 들어야 하나요? 이미 절반정도는 듣기했는데 딱히 3D를 만들생각은 없어서요 
- 
      
        
    미해결일주일 완성! 3dsmax 입문 (자동차 및 캐릭터 만들기)단축키 ctrl+/ , ctrl * ctrl+x 가 안먹네요...단축키를 받아서 해봤는데도 잘 안되는 것 같아요. 어떻게 설정하죠?? 
- 
      
        
    미해결일주일 완성! 3dsmax 입문 (자동차 및 캐릭터 만들기)pdf 문서 파일영상 초반에 pdf 노트 공유해주시겠다고 하시는데 별도로 사용하시는 문서 파일은 어디서 받아볼 수 있을까요?? 
- 
      
        
    미해결자바 ORM 표준 JPA 프로그래밍 - 기본편자바 ORM 표준 JPA 프로그래밍 기본 - 8.프록시와 연관관계 관리=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]즉시로딩과 지연로딩 파트 설명해주실때 질문이 있습니다.fetch = FetchType.LAZY)로 지연로딩을 사용해서 프록시로 조회한다고 하시면서 코드로 설명해 주실때Team만들고 em.persist(team);Member 만들고 em.persist(member);em.flush();em.clear();Member m = em.find(~~);m.getTeam().getName();이 부분에서 마지막 m.getTeam().getName(); 이 부분할때 db에 쿼리가 나간다고 하셨는데 왜 쿼리가 나가는 건가요?? em.find로 db에서 찾은 객체가 영속성 컨텍스트에 올라와 있어서 쿼리문을 안날려도 되는거 아닌가요?? 그리고 지연로딩할때 Member클래스의 Team 필드에만 지연로딩을 적용했는데 JpaMain 클래스에서 em.find(Member.class,~~);로 객체 찾을때 이 Member 클래스 자체가 프록시가 되는건가요??? 
- 
      
        
    미해결[개정3판] Node.js 교과서 - 기본부터 프로젝트 실습까지NCP배포도 동일하게 하면 될까요?[제로초 강좌 질문 필독 사항입니다]질문에는 여러분에게 도움이 되는 질문과 도움이 되지 않는 질문이 있습니다.도움이 되는 질문을 하는 방법을 알려드립니다.https://www.youtube.com/watch?v=PUKOWrOuC0c안녕하세요! 초보 개발자입니다 회사에서 NCP를 활용하여 배포 하려고하는데 강좌에 나오는 AWS 배포방식과 동일하게 진행하면 되는걸까요.,? 물어볼곳이 없어 질문드립니다 
- 
      
        
    미해결스프링 핵심 원리 - 기본편싱글턴 빈 객체의 생명 주기[질문 템플릿]1. 강의 내용과 관련된 질문인가요? 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? 예[질문 내용]싱글턴 빈 객체의 경우 스프링의 생명주기와 함께 하나요? 즉 스프링이 빈을 등록할 때 생성이 되어서 스프링이 종료 될 때 빈도 destroy 되는 것일까요? 
- 
      
        
    미해결자바 ORM 표준 JPA 프로그래밍 - 기본편자바 ORM 표준 JPA 프로그래밍 기본 - 8.프록시와 연관관계 관리=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]8.프록시와 연관관계 관리 강의 중에서 프록시 부분 설명하실때 이해가 안되는 부분이 있는데요em.getReference()하면 프록시 객체가 영속성 컨테스트에 생성되는 건가요??JpaMain 클래스에서 코드 작성하실때Member member1 = new Member();member1.setUsername("member1");em.persist(member1);em.flush();em.clear();Member refMember = em.getReference(~,member1.getId());refMember.getUsername();이렇게 작성하셨는데 아래쪽에 프록시 객체 생성하고 refMember.getUsername()할때 왜 db에 select문이 나가는 건가요??영속성 컨텍스트에 없어서 그런건가요???그리고 위의 코드에서 refMember.getUsername(); 할때 프록시를 초기화 한다고 하셨는데 getter 메서드쓰는게 어떻게 초기화를 하는건가요??프록시에 getUsername()을 하면 프록시에 username 값이 세팅되는 건가요?? 프록시는 target 이랑 진짜 객체의 메소드만 갖고있는거 아닌가요??? 
- 
      
        
    미해결설계독학맛비's 실전 Verilog HDL Season 1 (Clock부터 Internal Memory까지)공간 부족 오류 문의드립니다.위의 내용 중 빨간색 글씨를 복사해서 붙여넣는 과정을 하고 있는데, 다음과 같은 오류가 발생했습니다. 에러 내용을 보면 공간이 부족하다는 것 같은데, 노트북의 저장 공간을 확인해본 결과, 로컬디스크 C에는 25GB이상의 저장공간이 남아있었습니다. 리눅스 설치가 처음이라 잘 몰라서 그런데, 위에서 우분투를 통해 설치를 하는 공간이 로컬디스크 C가 아닌 다른 곳에 설치가 되는건가요? 계속 이러한 오류가 발생하여 문의드립니다. 
- 
      
        
    해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트맞왜틀 문의드립니다!- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. http://boj.kr/c650b428f52f433c841f35d391fe7a7c 시간을 합치지 않고 pair를 사용해서 코드를 짜느라 좀 길어졌습니다...어떤 예외가 있는지 알 수 있을까요ㅠㅠ 
- 
      
        
    해결됨자바 ORM 표준 JPA 프로그래밍 - 기본편즉시로딩의 문제점학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예)[질문 내용]강의 15분에 즉시로딩의 문제점에서 JPQL의 N+1문제점에서 쿼리가 2번나가면 문제가 발생하는 이유가 있나요?? 데이터 잘 들어오는거 같은데 성능문제인가요?? 근데 어차피 지연 로딩하면 쿼리가 2번 나가게 되는거아닌가요? 
- 
      
        
    미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)프래그먼트 오류프래그먼트 강의 몇번이고 시도해봤는데 계속 동일한 현상이 일어나 문의드립니다~아래는 오류코드 입니다!구글링해도 찾기가 어렵네요 ㅠㅠ +++++++++++++++++++++++++++++++ 8 issues were found when checking AAR metadata: 1. Dependency 'androidx.navigation:navigation-common:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 2. Dependency 'androidx.navigation:navigation-common-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 3. Dependency 'androidx.navigation:navigation-runtime:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 4. Dependency 'androidx.navigation:navigation-ui:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 5. Dependency 'androidx.navigation:navigation-runtime-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 6. Dependency 'androidx.navigation:navigation-ui-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 7. Dependency 'androidx.navigation:navigation-fragment-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 8. Dependency 'androidx.navigation:navigation-fragment:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 
- 
      
        
    미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술동시세션제어 관련 질문이 있습니다!!안녕하세요. 영한님 강의를 들으며 스프링을 공부하고 있는 학생입니다!!mvc 2편 로그인 처리 관련 부분을 듣다가 (HttpSession을 이용하는 부분)궁금한 것이 떠올라서서로 다른 브라우저 두 개를 키고 같은 사용자 계정으로 로그인을 해보았는데요,서로 다른 세션이 생성되는 것을 보고이런 식이면 같은 사용자에 대해 세션들이 굉장히 많이 생성될 수 있을테니깐 공격당하기 쉽겠다라는 생각이 들었습니다.그래서 구글링을 해보았는데요, 동시세션제어 전략들에 대해서 알게되었고그를 사용하기 위해 Spring Security를 사용한다는 것을 알게되었습니다.그래서 검색을 통해 알게 된 정보를 바탕으로 아래와 같이 SecurityConfig.java 파일을 만들어서 작성하였는데요.@Configuration @EnableWebSecurity public class SecurityConfig { @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception{ http.sessionManagement() .maximumSessions(1) .maxSessionsPreventsLogin(true); return http.build(); } }제가 기대한 것과 다르게 동시세션제어가 이루어지지 않았습니다...검색을 한참을 해보았는데 마땅한 정보를 얻지 못하여 이렇게 질문 드립니다!! 어떻게 해야 동시세션제어 전략을 적용할 수 있을지 답변해 주시면 정말 감사하겠습니다! 
- 
      
        
    미해결실습으로 배우는 선착순 이벤트 시스템컨슈머를 왜 다른 모듈로 구성하는지 궁금해요!안녕하세요. 강의 잘 듣고 있습니다.왜 쿠폰 모듈 아래 api모듈과 컨슈머 모듈을 나눠서 구성했는지 알고싶어요!!감사합니다. 
- 
      
        
    미해결스프링 핵심 원리 - 기본편싱글톤의 문제학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예)[질문 내용]멤버 서비스는 싱글톤을 사용해도 문제가 없다고 생각하는데 멤머 리파지토리(메모리 맴버 리파지토리)도 싱글톤을 사용해도 문제가 없나요? 
