묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 프레임워크 입문
이해
bean인 생성자 내에 bean인 파라미터가 있으면 @Autowired를 생략하고 의존성을 가질 수 있다라고 이해하면 될까요?
-
미해결자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
빌드 및 실행과 테스트 실행을 Gradle로 설정하면 오류가 생겨요!
강사님 200 OK랑 30이 나와야 하는데, 저는 오류가 떠요. 아래 오류는 강사님 코드를 다운받고 실행시킬 처음부터 발생했습니다!500 Internal Server ErrorThe server has encountered a situation it does not know how to handle.{ "timestamp": "2024-09-20T07:29:31.340+00:00", "status": 500, "error": "Internal Server Error", "path": "/add" }위에거는 인텔리제이 코드가 아니라 포스트맨에서 나오는 오류 코드입니다.인텔리제이 빌드.그래들을 실행시키면 아래 오류가 뜹니다. 아래 오류는 설정에서 Build and run using과 Run tests using을 인텔리제이 IDEA로 바꿔야 해결되는데, 그러면 포스트맨에서 코드가 안나옵니다.정답은 30, 200OK가 저는 안나와요!아래 참고 사이트:https://dev-emmababy.tistory.com/86https://velog.io/@blackbean99/Java-finished-with-non-zero-exit-value-1-%EC%97%90%EB%9F%AC-%ED%95%B8%EB%93%A4%EB%A7%81 Execution failed for task ':com.group.library_app.LibraryAppApplication.main()'.> Process 'command 'C:\Users\Student\.jdks\corretto-17.0.12\bin\java.exe'' finished with non-zero exit value 1* Try:> Run with --stacktrace option to get the stack trace.> Run with --info or --debug option to get more log output.> Run with --scan to get full insights.> Get more help at https://help.gradle.org.BUILD FAILED in 2s3 actionable tasks: 1 executed, 2 up-to-date
-
해결됨이득우의 언리얼 프로그래밍 Part2 - 언리얼 게임 프레임웍의 이해
TObjectPtr과 강참조에 관한 질문입니다
8강 아이템 시스템 마지막에 강참조된 아이템들을 약참조로 바꾸는 부분을 공부하다가 질문드립니다 인터넷에서 강참조와 약참조에 대해 좀 더 자세히 공부하다보니강참조 = TStrongObjectPtr / 약참조 = TSoftObjectPtr 를 사용하며, TObjectPtr과 강참조가 관련된 정보는 없길래 TObjectPtr에 대해 궁금증이 생겼습니다 TObjectPtr에 대해 검색해본 바로는TObjectPtr은 기존에 사용하던 원시 포인터를 대체하는 포인터를 이용한 단순한 참조에 불과하며, 그러므로 댕글링 포인터 문제 또한 발생할 수 있다.보통 강참조라고 하는 것은, 객체의 소유권을 가지고 Ref Count를 올리는 역할을 수행해야 하는데, TObjectPtr은 단순히 객체를 참조하는 역할만 하므로 강참조라고 볼 수는 없다라고 나와 있던데 강의에서 TObjectPtr이 강참조라고 하셨던 것은 어떤 의미인지 궁금합니다 그리고 만약에 TObjectPtr이 강참조가 아니라면, 이는 어떠한 정도의 참조인건지요...? 중참조? 이런 단어는 없는거같던데.. TObjectPtr은 TStrongObjectPtr(강참조) 와 TSoftObjectPtr(약참조) 사이의 어딘가에 있는 애매한 정도의 참조인것인지요?? 추가질문)약참조를 공부하는데 약참조에도 또 TSoftObjectPtr과 TWeakObjectPtr의 2가지가 존재하더라구요... TSoftObjectPtr리소스의 주소는 갖고 있되, 로딩은 시켜놓지 않는 경우에 사용아직 현재 월드에 인스턴스화되지 않은 객체를 참조할 때 사용TSoftObjectPtr은 FSoftObjectPath를 감싸는 TWeakObjectPtr이다 TWeakObjectPtrRef Count를 증가시키지 않아야 하는 경우 / 소유권이 없지만 참조는 필요한 경우에 사용참조하고 있는 오브젝트가 GC에 넘어간 경우, nullptr로 바뀌며 validation 체크를 가능하게 함 이렇게 알고있는데 제가 학습한 내용이 맞는건지요??
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
7-B 풀이 로직 질문
http://boj.kr/80b5da8858994a9a9bca1bfbd7ce56a8 안녕하세요 선생님.DFS로 파이프의 position을 dp로 저장하면서 풀이를 진행했는데 이렇게 접근해도 괜찮은지 여쭤봅니다.감사합니다!
-
미해결데브옵스(DevOps)를 위한 쿠버네티스 마스터
강의해주시는 별도의 강의 자료는 없나요 ??
안녕하세요, 강사님 쿠버네티스 마스터 강의를 듣고 있는 수강생입니다.별도의 강의 자료는 없나요 ??정리해주신 실습파일 말고 강의하시는 자료를 받을수 없나요 ?챕터4부터는 yaml실습파일만 존재하고 설명자료는 없습니다. 확인 해주시면 감사하겠습니다.
-
해결됨Kevin의 알기 쉬운 Spring Reactive Web Applications: Reactor 1부
[Scheduler의 종류 강의] Schedulers.newParallel 메서드에 관한 질문
안녕하세요 강사님 Scheduler의 종류 강의를 수강하고 공부를 하던 와중에 newParallel 메서드에 대해서 궁금증이 생겨서 질문을 하게 됐습니다. 예제 코드에서는 newParallel의 parallelism변수 값을 4를 주셨는데 저는 3을 줘서 테스트를 해봤습니다. 해당 코드로 실행을 하면, 다음과 같은 로그가 나오게 됩니다.public class SchedulersNewParallelExample01 { public static void main(String[] args) { Mono<Integer> flux = Mono .just(1) .publishOn(Schedulers.newParallel("Parallel Thread", 3, true)); //쓰레드 할당 flux.subscribe(data -> { TimeUtils.sleep(5000L); Logger.onNext("subscribe 1", data); }); //쓰레드 할당 flux.subscribe(data -> { TimeUtils.sleep(4000L); Logger.onNext("subscribe 2", data); }); //쓰레드 할당 flux.subscribe(data -> { TimeUtils.sleep(3000L); Logger.onNext("subscribe 3", data); }); //쓰레드 할당 flux.subscribe(data -> { TimeUtils.sleep(2000L); Logger.onNext("subscribe 4", data); }); TimeUtils.sleep(8000L); } } 16:18:03.554 [Parallel Thread-3] INFO com.example.springwebflux.util.Logger -- # subscribe 3 onNext(): 1 16:18:04.548 [Parallel Thread-2] INFO com.example.springwebflux.util.Logger -- # subscribe 2 onNext(): 1 16:18:05.560 [Parallel Thread-1] INFO com.example.springwebflux.util.Logger -- # subscribe 1 onNext(): 1 16:18:07.561 [Parallel Thread-1] INFO com.example.springwebflux.util.Logger -- # subscribe 4 onNext(): 1제가 여기서 여쭤보고 싶은 사항은 다음과 같습니다.Round-Robin 방식을 통해서 각 쓰레드에 작업을 분배하고 더 많은 작업이 들어오면 각 쓰레드의 큐에 작업을 적재하는 것처럼 보이는데요. 작업들을 효율적으로 처리하기 위해서는 먼저 작업이 끝난 Parallel Thread-3에서 남아있는 작업을 가져가서 처리를 하면 좋을 것 같은데 [워크 스틸링(Work Stealing) 같은 처리]Spring WebFlux에서는 해당 기능은 지원하지 않는 것인지 궁금합니다.감사합니다
-
해결됨[리뉴얼] 맛집 지도앱 만들기 (React Native & NestJS)
yarn start. 와 npx react-native run-ios 명령은 다른 건가요?
❗질문 작성시 꼭 참고해주세요최대한 상세히 현재 문제(또는 에러)와 코드(또는 github)를 첨부해주셔야 그만큼 자세히 답변드릴 수 있습니다.맥/윈도우, 안드로이드/iOS, ReactNative 버전 등의 개발환경도 함께 적어주시면 도움이 됩니다. 에러메세지는 일부분이 아닌 전체 상황을 올려주세요. (일부만 잘라서 올리지 말아주세요.)[2-0] 강좌를 진행중에 있습니다.yarn start 를 실행하면 Welcome 화면이 나오는데..강사님이 실행한 것 처럼 npx react-native run-ios 를 실행하면 bundle error 가 나네요.
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
Connection is broken: "java.net.ConnectException: Connection refused: no further information: localhost"
Connection is broken: "java.net.ConnectException: Connection refused: no further information: localhost"혹시 상기 오류 발생하신 분은 해결방법 참고하시기 바랍니다.h2.bat 재실행자주묻는질문 H2 내용 확인하기컴퓨터 재부팅 (1, 2번을 해도 안 된다면, 아래 내용말고 꼭 이것부터 실행해보세요ㅠㅠ 4시간 걸려서 결국 찾은 해결법이 결국 이거였어요)git bash > cd ~ > ls > jpashop.mv.db 있는지 여부 확인 > 없으면 기존 매뉴얼 참고해서 다시 생성8082 port already in use라면?Windows 기준 cmd > netstat -ano | findstr :80828082 포트를 listening하고 있는 행의 가장 오른쪽 숫자(PID) 확인taskkill /PID 확인한숫자 /F datasource url 일치 여부 확인방화벽에서 8082 포트 차단하는지 여부 확인Windows 기준 제어판 > 시스템 및 보안 > Windows Defender 방화벽 > 고급 설정 > 인바운드 규칙 > 새 규칙 > 포트 > TCP, 8082 > 연결 허용TCP 서버 연결 여부 확인git bash에서 h2/bin 경로에서 아래 명령어 입력java -cp h2*.jar org.h2.tools.Server -tcp -tcpAllowOthersTCP server running 결과 나오는지 확인 Projects 창 하단의 external libraries에서 h2의 버전(ex. h2-2.2.224) 확인 > 아래 링크에서 버전에 맞게 다운로드 후 재설치https://www.h2database.com/html/download-archive.html애플리케이션 내부에 별도 스프링 빈 추가https://jehuipark.github.io/java/springboot-h2-tcp-setup
-
미해결입문자를 위한 코딩테스트 핵심(이론과 문제풀이) [Python]
set을 활용한 중복제거
안녕하세요 저는 set을 사용해서 중복을 제거하고 sort함수를 활용한 코드를 작성해봤는데 문제의 시간복잡도 조건에 맞는지 궁금합니다 감사합니다def solution(nums): answer = 0 length = len(nums) #사탕의 총 개수 type = sorted(list(set(nums)), reverse=True) if length > len(type): answer = len(type) elif length <= len(type): answer = len(type) // 2 return answer
-
해결됨공공데이터로 파이썬 데이터 분석 시작하기
강의 화면이 안나옵니다
섹션2의 2번 동영상부터 강의 화면이 나오지 않습니다.
-
미해결자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
빌드.그래들에서 디펜던시에 값을 붙여넣었는데, 어노테이션에 아무런 변화가 없어요!
빌드.그래들에서 디펜던시에 값을 붙여넣었어요!plugins { id 'java' id 'org.springframework.boot' version '3.3.3' id 'io.spring.dependency-management' version '1.1.6' } group = 'com.group' version = '0.0.1-SNAPSHOT' java { toolchain { languageVersion = JavaLanguageVersion.of(17) } } repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter' testImplementation 'org.springframework.boot:spring-boot-starter-test' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' implementation 'org.springframework.boot:spring-boot-starter-web' } tasks.named('test') { useJUnitPlatform() }하지만 어노테이션에 임포트 클래스라는 메뉴가 안떠요! 아무런 변화가 없습니다!https://needneo.tistory.com/272위 링크처럼 임포트 클래스 메뉴가 떠야하는데, 새로고침을 어떻게 하라는 건가요?한글메뉴라서 버튼이름이 다를 수 있어요!파일에서 IDE고치기도 해보고 실행도 해보고 디버그도 해봤어요! 전혀 변화가 없습니다.구체적으로 해결방법을 가르켜주세요!
-
미해결
빌드.그래들에 디펜던시에 값을 입력했는데, 새로고침을 어떻게 하나요? 아무런 변화도 없어서 다시 사진 첨부해서 질문합니다.
C:\Users\Student\Desktop\library-app\library-app\src\main\java\com\group\library_app\controller\calculator\CalculatorController.java:4: error: cannot find symbol@RestController^symbol: class RestControllerGradle 새로고침은 어떻게 하나요?implementation 'org.springframework.boot:spring-boot-starter-web'을 빌드.그래들에 추가했어요!Import class가 생겨야 하는데 어떻게 해야하는지 모르겠어요. 이 파일이 강사 선생님이 준거 열어서 했는데, 어노테이션 임포트가 안되게 설정되어 있어요!https://needneo.tistory.com/272위에 링크처럼 임포트 클래스가 생겨야해요! 어떻게 해야하나요?제 인텔리제이가 한글버전입니다.빌드 그래들에서 디펜던시에 값을 추가해도, 임포트 클래스가 안생기는데, 이유가 뭔가요? 어떻게 새로고침을 하라는건가요? 어노테이션에 아무런 변화가 없어요!
-
미해결Verilog ZYNQ Program 1 (Zynq mini 7020)
FSBL 관련
Vitis2024.1.0 사용 하고 있고, ZynqMini 7020 으로 공부하고 있습니다. 1, 정상적으로 Boot 이미지를 만들고, 2 ,정상적으로 Flash에 Download 한 것 같습니다.그런데.. 스위치 변경 하여 QSPI 모드로 다시 시작하는데 QSPI Boot로 동작 안되는 것 같습니다. 어디를 봐야 할까요??? vitis에서 zynqmin7020 물리고 jtag mode 에서는 run 또는 debug 동작은 잘 됩니다.
-
해결됨(2025) 일주일만에 합격하는 정보처리기사 실기
22년 3회 코드분석 영상 시작부분
안녕하세요 22년 3회 코드분석 영상 시작부분에서 이 문제는 어려워서 따로 해설을 찍어주신다고 한 c언어 문제는 혹시 어디서 해설을 볼 수 있을까요? 제가 찾을수가 없어서요..!
-
해결됨[리뉴얼] 맛집 지도앱 만들기 (React Native & NestJS)
No bundle URL present 오류는 어떻게 처리해야 할까요?
❗질문 작성시 꼭 참고해주세요최대한 상세히 현재 문제(또는 에러)와 코드(또는 github)를 첨부해주셔야 그만큼 자세히 답변드릴 수 있습니다.맥/윈도우, 안드로이드/iOS, ReactNative 버전 등의 개발환경도 함께 적어주시면 도움이 됩니다. 에러메세지는 일부분이 아닌 전체 상황을 올려주세요. (일부만 잘라서 올리지 말아주세요.)XCode 로 실행시켜보라는 강사님의 말대로 실행시켜 보았습니다.그런데 이런 오류가 나네요.. jsbundle file을 그냥 생성해주면 되나요? 어떻게 해야하는 걸까요?
-
해결됨한 입 크기로 잘라먹는 Next.js(v15)
예전에는 컴포넌트 만들떄 파스칼로 많이 했는데
page.tsx나 index.tsx는 그렇다치는데,searchbar 는 파스칼로 요즘에 안하나요 ?
-
미해결실습으로 배우는 프로메테우스 - {{ x86-64, arm64 }}
habor metric 노출 관련 질문
위 링크에 접속할 때 metric을 확인할 수 있었지만, 도대체 어떤 요소가 habor에 대한 metric을 노출 시켜주는지 이해가 가질 않습니다. 또한 꼭 harbor가 아니더라도 웹을 배포하고 url 뒤에 /metrics를 붙이면 메트릭을 확인할 수 있는것인가요?
-
미해결기획자님 이 정도 웹 개발은 배워보면 어떨까요? [이론+실습]
vue cli 설치 강의 중 오류
질문은 자세하게 적어주실 수록 좋습니다. 2-6 Vue CLI 설치 강의 Node. js 파일까지 설치 완료 -> Vue 설치 진행 과정에서 아래와 같은 오류가 뜹니다. npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.npm warn deprecated @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supportednpm warn deprecated @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead. npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecatednpm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supportednpm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supportednpm warn deprecated apollo-datasource@3.3.2: The apollo-datasource package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.npm warn deprecated apollo-server-errors@3.3.1: The apollo-server-errors package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the @apollo/server package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecatednpm warn deprecated apollo-server-types@3.8.0: The apollo-server-types package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the @apollo/server package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.npm warn deprecated apollo-server-plugin-base@3.7.2: The apollo-server-plugin-base package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the @apollo/server package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecatednpm warn deprecated shortid@2.2.16: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated apollo-reporting-protobuf@3.4.0: The apollo-reporting-protobuf package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the @apollo/usage-reporting-protobuf package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm warn deprecated apollo-server-env@4.2.1: The apollo-server-env package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the @apollo/utils.fetcher package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.npm warn deprecated subscriptions-transport-ws@0.11.0: The subscriptions-transport-ws package is no longer maintained. We recommend you use graphql-ws instead. For help migrating Apollo software to graphql-ws, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using graphql-ws, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md npm warn deprecated vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.changed 852 packages in 1m 75 packages are looking for funding run npm fund for details 재설치도 해 봤는데, 안되네요..!도와주세요! 추가로 터미널에 작성할 때 폴더명 뒤에 % 이것도 넣어야 하나요?
-
미해결
유니티에서 PCG맵생성 알고리즘을 개발중입니다.
던전이 무작위로 생성되는 알고리즘을 개발중인데 Instantiate으로 생성하는건 최적화에 좋지 않다고 들었습니다.아이작과 유사한 던전이 생성되는데 벽들이 블럭 형식이라 각자 하나하나 벽의 역할만하고 다른 기능이 없는 오브젝트는 세자릿수로 생성되고 다른 상호작용한 오브젝트들(ex: 적 캐릭터들, 상자, 문, 트랩)은 세자리수까지는 생성되지는 않고 두자리 정도의 갯수까지만 생성됩니다. 로그라이크 형식인데 스테이지 시작할때마다 던전이 생성되는데 생성된 오브젝트들이 한번 생성되면 그 스테이지가 끝날때까지 삭제되거나 다시 생성할일이 없어서 오브젝트를 풀링을 해서 얻는 이득이 없을거같은데 어떻게 해야하는게 좋은지 여쭤봅니다.
-
미해결재고시스템으로 알아보는 동시성이슈 해결방법
비관적 락 vs 레디스(Lettuce)락 비교 관련 질문
강의를 보고 제 사이드 프로젝트에 그대로 적용해 보았습니다. 리뷰와 리뷰댓글 테이블이 있으면 동시에 1번 리뷰에 대한 리뷰댓글을 100개 썼을때, 리뷰테이블의 리뷰댓글카운트 컬럼에 업데이트를 시키는데, 두 방식 다 성공했습니다.처리시간 평균비관적 락 : 1초레디스 락 : 1.5초 환경은 리뷰테이블에는 데이터 2건, 리뷰댓글테이블에는 10만건 있었습니다.시도해본것레디스 락의 락 유지시간, 재시도 시간을 줄여봄Q1. 그렇다면 어떤 환경에서는 레디스 락이 빠를까요?Q2. 레디스 락이 분산 시스템 환경에서 유리하다는데 그것에 대해서도 설명 부탁드립니다.Q3. 곧 MSA 프로젝트를 하는데 각 마이크로 서비스마다 DB가 있을테고 각 서비스에 DB에 접근할때 비관적 락을 걸어도 문제없을거 같은데 이때에 레디스 락을 쓰는 것에 대한 장점이 있을까요??