묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[리뉴얼] 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 주소도 알려주셨으면 하나이다
-
미해결유니티3D를 사용한 VR 제작 기초.
공 던지는 속도를 높이려면 어떻게 해야 하나요?
공 던지는 속도가 너무 작아서 그런데 속도를 높이려면 어떤 값을 바꿔줘야 되나요?
-
미해결최신 딥러닝 기술 Vision Transformer 개념부터 Pytorch 구현까지
모델 활용 관련 질문
안녕하세요, 최신 이론을 시의 적절하게 잘 다뤄 주셔서 매우 유익한 강의였습니다. 제공해 주신 실습파일에서는 cifar-10 데이터셋을 epoch 500회로 학습하여 model .pth를 만드신 것으로 보이는데, 만약 데이터셋만 다른 것으로 변경 후 model.pth를 적용하면, 기존 cifar-10을 이용하여 pretrained된 모델을 이용한 전이학습이 가능한 것인지요? 그리고, 현재 모델은 cifae-10으로 학습되어 있는데, 혹시 cifar-100 이나 imagenet 등 다른 데이터셋으로 pretrained된 모델을 구할 수 있는 지 궁금합니다.
-
미해결빅분기 실기 1Day Class(R)
confusionMatrix 관련 질문
위 처럼 table결과값을 confusionMatrix에 넣었을 때 인수가 누락됐다고 나오는 경우는 어떻게 해야하나요?
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
특정 클래스에서만 Atomic을 써서 관리하는 이유가 궁금합니다
MemoryPool에선 관리하는 변수들을 Atomic으로 관리하셨는데 Send,Recv Buffer나 Session에서는 아토믹없이 내부에서 int형만으로 처리하는걸 보고 궁금증이 생겼습니다. 메모리풀뿐만 아니라 세션이나 send,recvBuffer에서도 멀티쓰레드를 통해 처리되지 않나요? 아토믹 변수를 쓰시는 철학(?), 어떤 배경에서 쓰실 생각을 하셨는지 궁금합니다.
-
미해결홍정모의 따라하며 배우는 C언어
비주얼 스튜디오 상에서 strlen 함수 사용시 경고 C6001이 뜨는 이유가 궁금합니다.
#include <stdio.h> #include <string.h> //strlen and more int main() { char str1[100] = "Hello"; char str2[] = "Hello"; char str3[100] = "\0"; char str4[100] = "\n"; printf("%zu %zu\n", sizeof(str1), strlen(str1)); //C6001 printf("%zu %zu\n", sizeof(str2), strlen(str2)); printf("%zu %zu\n", sizeof(str3), strlen(str3));//C6001 printf("%zu %zu\n", sizeof(str4), strlen(str4));//C6001 return 0; } 4.4 strlen() 함수 0:48초 부분인데 강의에서는 아무런 워닝이 뜨지 않지만 제 비주얼 스튜디오 상에서는 str2를 제외한 str1, str3, str4에서 워닝 C6001이 발생합니다. Using uninitialized memory 'str1' Using uninitialized memory 'str3' Using uninitialized memory 'str4' 근데 온라인 gcc 컴파일러에서는 아무런 워닝도 뜨지 않고, 강의 상에서의 비주얼 스튜디오에서도 아무런 워닝이 생기지 않아서 제 생각으로는 아마도 비주얼 스튜디오가 업데이트 되면서 생긴 문제 같은데 왜 이런지 이유를 알 수 있을까요? 현재 Microsoft Visual Studio Community 2019 Version 16.11.5을 사용하고 있습니다.
-
미해결Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
상급강좌 설문조사
폴리곤(Polygon Matic) 레이어2를 활용한 디앱개발 상급 코스 개설희망합니다. 감사합니다.
-
미해결스프링 핵심 원리 - 고급편
안녕하세요. 간단한 인텔리제이 질문이 있습니다.
안녕하세요. 우선, 강의 매우 잘보고 있습니다. 다름이 아니라, 변수 추출 기능 (cmd + opt + v) 를 쓰면 final 키워드로 변수가 할당되는데 이거 해결방법이 없을까요..?