묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
팀프로젝트 질문입니다.
3인 프로젝트를 진행합니다. 간단 하게 Slack 을 따라 만들어 보려고하는데, 기능은 크게 회원관리, 게시글, 채팅 정도로 생각하고 있습니다. 기간은 한달이고 하루 7~8시간 정도 투자할예정입니다. 고민되는게 JPA를 사용해도 될지 의문입니다. 현재 Spring 로드맵은 MVC 2편, 심화 부분 제외하고 다수강한상태이고JPA 기본편은 연관관계매핑 기본(35%) 수강했고, 활용1편 수강완료한 상태입니다.개인적인 욕심으로는 JPA를 적용해서 사용해보고 싶은데, 걱정되는 부분은 팀원은 모두 JPA에 대해 아예 모르는 상태이며, 저 또한 동적쿼리나, 복잡한 쿼리에서 JPA를 사용할 수 있을지 확신이 안서는 상태입니다.입사가 걸린 중요한 프로젝트라, 열심히 학습하면서 충분히 프로젝트에 적용시킬 수 있을까요?
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
질문있습니다!
ModelView 클래스 private Map<String, Object> model = new HashMap<>(); 에서 Map<String, Object>인 이유가, viewName이 String이고 viewResolver가 Object여서 그런건가요? 또한 ModelView process(Map<String, String> paramMap) 에서 Map<String, String>인 이유는 입력 값이 모두 String이어서 파라미터 키와 값이 모두 String이기 때문임이 맞나요?
-
미해결고수가 되는 파이썬 : 동시성과 병렬성 문법 배우기 Feat. 멀티스레딩 vs 멀티프로세싱 (Inflearn Original)
스레드 실행 순서
강의코드 똑같이 작성했는데 실행순서가 왜 다른지 잘 모르겠습니다 3.9.5 버젼입니다. 터미널 창: 19:41:09 : Main-Thread: before creating thread 19:41:09 : Main-Thread: before running thread 19:41:09 : Main-Thread: wait for the thread to finish 19:41:09 : Main-Thread: all done 19:41:09 : Sub-Thread First: starting 19:41:12 : Sub-Thread First: finished import logging import threading import time # 스레드 실행 함수 def thread_func(name): logging.info("Sub-Thread %s: starting", name) time.sleep(3) logging.info("Sub-Thread %s: finished", name) # 메인 영역 if __name__ == "__main__": # 메인 스레드의 흐름을 타는 시작점. # Logging format 설정 format = "%(asctime)s : %(message)s" logging.basicConfig(format=format, level=logging.INFO, datefmt="%H:%M:%S") logging.info("Main-Thread: before creating thread") # 함수 인자 확인, 스레드 하나 생성, 타겟 : 스레드에서 만들 함수 x = threading.Thread(target=thread_func, args=('First',)) logging.info("Main-Thread: before running thread") # 서브 스레드 시작 x.start() # x.join() # 이게 있으면 메인은 스탑되고 서브 스레드 끝나고 나서 밑에 실행 logging.info("Main-Thread: wait for the thread to finish") logging.info("Main-Thread: all done")
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
MemberForm , Member 클래스 질문
mvc 패턴에서 MemberForm 클래스와 Member 엔티티는 모델 역할을 한다 생각해도 되나요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
한글 log 가 깨지는 문제
ㅇㄴ 이처럼 한글 로그가 깨지는데 해결할 방법이 없을까요?ㅠㅠ
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
북마크 페이지 관련 질문 있습니다
좋은 수업 감사합니다 강사님. 수업을 듣다가 의문점이 들어서 이렇게 질문을 남깁니다. 강사님께서 수업해주신 내용 그대로 코드를 작성했습니다. 그런데 북마크 페이지에서는 북마크를 해제할 수 없던데 혹시 북마크 페이지에서 북마크를 해제하는 코드를 작성하는 방법을 알려주실 수 있으신가요? 코드는 강사님께서 만드신 코드와 동일해서 따로 첨부하지 않았습니다. 주말에도 귀찮게 만들어 드린 것 같아 죄송합니다.
-
미해결빅데이터분석기사 실기대비 (R 활용)
유형별 예시문제
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 작업형 제1유형에서 "mtcars 데이터셋(mtcars.csv)의 qsec 컬럼을 최소최대 척도(Min-Max Scale)로 변환한 후 0.5보다 큰 값을 가지는 레코드 수를 구하시오." 라고 했는데 어떤 method를 적용해야하나요 ? 혹시 적용시킬 method가 없다면 어떤 코드로 해당 문제를 풀어나가야 하는지 궁금합니다. 감사합니다 :)
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
dataTypes.STRING( 숫자 ) 숫자 지정해주는 이유
최대 숫자를 지정해주는 이유가 뭔가요??
-
미해결CSS Flex와 Grid 제대로 익히기
https://www.inflearn.com/questions/64102
https://www.inflearn.com/questions/64102 이전 질문에서 설명해주신걸 보았으나 잘 이해가 가지 않아 다른 질문 드립니다! height: 0; padding-bottom: 60%; 을 주면 보이지 않던 이미지가 보이게 되는데 그 이유가 아직도 잘 이해가 안갑니다. 올려주신 이전 답변에서 padding bottom만 남고 height은 0이 되는데 어떻게 보이지 않던 이미지가 보이게 되는건지... 다시 설명을 부탁드리겠습니다 ㅠㅠ 감사합니다!
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
http://localhost:8080 에러가 납니다
[질문 내용]여기에 질문 내용을 남겨주세요. 웹페이지에 localhost 8080 검색하면 이렇게 나옵니다
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
문제에서
원소 사이의 증가 폭이 커야 한단 의미가 아니라 점점 증가하는 원소들의 집합 중 길이가 가장 긴 것을 찾는다는 의미인 것인가요? 원소들 사이 사이의 증가 폭은 고려할 필요가 없나요?
-
미해결[개정판 2023-11-27] Spring Boot 3.x 를 이용한 RESTful Web Services 개발
Put메소드
@PostMapping("/{id}/edit")public User updateUser(@ModelAttribute("user") User user, @PathVariable int id) { return userDaoService.updateUser(user, id);} public User updateUser(User user, int id) { User findUser = findOne(id); findUser.setName(user.getName()); return findUser;} 간단하게 이렇게 작성했습니다. update에서는 루프를 돌 필요가 없이 어차피 findOne메소드로 회원 한 명의 정보를 가져와서 바로 필요한 이름만 업데이트한 후 리턴해주니 정상적으로 동작 합니다.
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
css 하이라이트 기능
인텔리제이 css 하이라이트 기능이 적용되지 않는데 강사님은 어떻게 적용시키신 건가요~?
-
미해결실전! 스프링 데이터 JPA
jpaRepository 의존성 주입 중복문제????
안녕하세요 김영환 강사님강의를 들으면서 다른 작업시 이러한 문제가 발생해서 진행이 안됩니다. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminBoardController' defined in file [C:\Users\web\projects\xxx-api\build\classes\java\main\com\xxx\xxxapi\controller\admin\AdminBoardController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'articleService' defined in file [C:\Users\web\projects\xxx-api\build\classes\java\main\com\xxx\xxxapi\service\ArticleService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleRepository' defined in com.xxx.xxxapi.repository.board.ArticleRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested exception is org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Reason: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article]; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'articleService' defined in file [C:\Users\web\projects\xxx-api\build\classes\java\main\com\xxx\xxxapi\service\ArticleService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleRepository' defined in com.xxx.xxxapi.repository.board.ArticleRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested exception is org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Reason: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article]; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleRepository' defined in com.xxx.xxxapi.repository.board.ArticleRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested exception is org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Reason: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article]; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] Caused by: org.springframework.data.repository.query.QueryCreationException Could not create query for public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Reason: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article]; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] Caused by: java.lang.IllegalArgumentException: Failed to create query for method public abstract com.xxx.xxxapi.model.board.Article com.xxx.xxxapi.repository.board.ArticleRepository.findByHeadIdxAndAIdxNot(int,int)! Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] Caused by: java.lang.IllegalArgumentException: Unable to locate Attribute with the the given name [AIdx] on this ManagedType [com.xxx.xxxapi.model.board.Article] 어떤 문제인지 부탁드립니다
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
마지막 인풋 테스트케이스 반례 질문입니다!
안녕하세요! 질 좋은 강의에 감사인사부터 드립니다 :) 다름이 아니라 해당 문제에 대해 강사님의 아이디어만 듣고 스스로 구현해보았는데, 마지막 인풋 테스트 케이스에서 오답이 발생하는데요!? 이후에 강사님 풀이를 보고 조건 하나가 빠져서 오답이 발생했다는 것은 알았는데, 왜 오답이 발생하는지에 대해서는 잘 모르겠어서요.. 인풋이 워낙 큰 값이어서 디버깅하기가 힘드네요.. 우선 마지막 인풋 테스트 케이스는 input: 7 8945 output: 1790 인데요! 제가 처음에 작성한 코드는 아래 코드인데요! 선생님 풀이를 본 후 추가시킨 if 문이 주석 처리 해준 부분입니다. 왜 제 풀이로 하면 마지막 인풋에 대해서 1063이라는 아웃풋이 나오게 될까요..? 근본적인 이유가 궁금하네요.. s, e = map(int, input().split()) move = [1, -1, 5] MAX = int(1e4) distance = [-1] * (MAX+1) distance[s] = 0 # 출발지점 거리 0으로 초기화 queue = deque([s]) while queue: pos = queue.popleft() if pos == e: break # 3가지 방법으로 이동 for m in move: #if 0 < pos + m <= MAX: # 이 조건이 없으면 마지막 인풋 오답나옴 if distance[pos + m] == -1: # 방문한 곳 아니라면! distance[pos + m] = distance[pos] + 1 queue.append(pos + m) print(distance[e])
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
thymeleaf 관련 질문
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요.
-
미해결게임 엔진을 지탱하는 게임 수학
강의 노트를 공유해주실 수는 없을까요?
복습을 위해 강의 노트를 보면서 복습하고 싶은데, 강의노트를 공유해주실 수는 없는지 궁금합니다 :) 좋은 강의 감사합니다!
-
미해결BBC 인터랙티브 페이지 "코로나19가 바꿀 사무실의 미래" 클론
style.css 오류
안녕하세요. 강사님. 수업을 재밌게 듣고 있는 초보 프로그래머입니다. 수업을 듣던 도중 발생하는 style.css의 .bird오류들과 관련해 문의 드립니다.
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part1: C++ 프로그래밍 입문
글로벌 선언? 전역선언? 을 하니까 함수 포인터의 fn 까지는 잘 되는데 그이후가 안되네요
int sub(int a, int b) { return a + b; } typedef int(Fanc_sub)(int, int); Fanc_sub* fn; fn = sub; int main() { int c = fn(1, 2); cout << c << endl; return 0; } mine 실행부분 안쪽에 넣어놓지 않고 그 외부에 선언을 하니까 저 빨간부분이 작동을 하지 않는데 왜 그러는걸까요 ㅠㅠ 느낌상 메인함수안에서 무언가가 작동해야 되는데 스택 메모리 관련된 부분인가요? 딱 저부분에만 빨간줄이 처지고 형식 지정지가 없다고 나옵니다 뭣때문에 저부분에서는 안되는걸까요 ㅠㅠ
-
해결됨처음 배우는 리액트 네이티브
IconButton 컴포넌트 만들기에서 ..
전 현재 Android 용 앱을 만들고 있는데요 님의 강의는 IOS 용 아이콘사용법이더군요 안드로이드용 아이콘에 대한 강의는 없는지요 아님 다른 자료라도 추천해주시면 감사하겠습니다 또 질문관련 님의 github 주소도 알려주셨으면 하나이다