묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결실전! 코틀린과 스프링 부트로 도서관리 애플리케이션 개발하기 (Java 프로젝트 리팩토링)
깃, 블로그 업로드 관련 질문드립니다.
안녕하세요, 선생님. 혹시 공부한 코드는 깃과 블로그에 올려도 되는지 궁금합니다!
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 레딧 사이트 만들기(NextJS)(Pages Router)
4분 14초 부분 에러
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 똑같이 입력한 것 같은데 저는 왜 에러가 나올까요?? ㅜㅜ
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
어디에서 문제가 생겼는지 궁금합니다.
강의를 보기전에 BFS로 문제들 풀고자 하였습니다. 76%까지만 채점이 되고 그 이후로는 틀린 부분이 있기 때문에 오답처리가 되는것 같습니다. 해당 코드에서 어떤부분이 문제가 되는지 알고싶습니다. 코드주소 : http://boj.kr/337991bfbac5479ea85415eebf481d24
-
해결됨시스템엔지니어가 알려주는 리눅스 실전편 Bash Shell Script
vagrant up 실행 중 에러
안녕하세요, 윈도우10 환경에서 2-1 서버 구축 강의를 보며 진행 중 오류가 발생해 문의 드립니다. 실행 로그는 아래와 같습니다. $ vagrant upBringing machine 'cent1' up with 'virtualbox' provider...Bringing machine 'cent2' up with 'virtualbox' provider...Bringing machine 'cent3' up with 'virtualbox' provider...==> cent1: Preparing master VM for linked clones... cent1: This is a one time operation. Once the master VM is prepared, cent1: it will be used as a base for linked clones, making the creation cent1: of new VMs take milliseconds on a modern system.==> cent1: Importing base box 'rockylinux/8'...==> cent1: Cloning VM...==> cent1: Matching MAC address for NAT networking...==> cent1: Checking if box 'rockylinux/8' version '5.0.0' is up to date...==> cent1: Setting the name of the VM: cent1==> cent1: Clearing any previously set network interfaces...==> cent1: Preparing network interfaces based on configuration... cent1: Adapter 1: nat cent1: Adapter 2: hostonly cent1: Adapter 3: hostonly==> cent1: Forwarding ports... cent1: 22 (guest) => 2222 (host) (adapter 1)==> cent1: Running 'pre-boot' VM customizations...==> cent1: Booting VM...==> cent1: Waiting for machine to boot. This may take a few minutes... cent1: SSH address: 127.0.0.1:2222 cent1: SSH username: vagrant cent1: SSH auth method: private key cent1: cent1: Vagrant insecure key detected. Vagrant will automatically replace cent1: this with a newly generated keypair for better security. cent1: cent1: Inserting generated public key within guest... cent1: Removing insecure key from the guest if it's present... cent1: Key inserted! Disconnecting and reconnecting using new SSH key...==> cent1: Machine booted and ready![cent1] No Virtualbox Guest Additions installation found.The guest's platform ("rocky") is currently not supported, will try generic Linux method...Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.isoMounting Virtualbox Guest Additions ISO to: /mntmount: /mnt: WARNING: device write-protected, mounted read-only.Installing Virtualbox Guest Additions 6.1.36 - guest version is unknownVerifying archive integrity... All good.Uncompressing VirtualBox 6.1.36 Guest Additions for Linux........VirtualBox Guest Additions installerCopying additional installer modules ...Installing additional modules .../opt/VBoxGuestAdditions-6.1.36/bin/VBoxClient: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory/opt/VBoxGuestAdditions-6.1.36/bin/VBoxClient: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directoryVirtualBox Guest Additions: Starting.VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernelmodules. This may take a while.VirtualBox Guest Additions: To build modules for other installed kernels, runVirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>VirtualBox Guest Additions: orVirtualBox Guest Additions: /sbin/rcvboxadd quicksetup allVirtualBox Guest Additions: Kernel headers not found for target kernel4.18.0-348.20.1.el8_5.x86_64. Please install them and execute /sbin/rcvboxadd setupmodprobe vboxguest failedThe log file /var/log/vboxadd-setup.log may contain further information.An error occurred during installation of VirtualBox Guest Additions 6.1.36. Some functionality may not work as intended.In most cases it is OK that the "Window System drivers" installation failed.Redirecting to /bin/systemctl start vboxadd.serviceJob for vboxadd.service failed because the control process exited with error code.See "systemctl status vboxadd.service" and "journalctl -xe" for details.Got different reports about installed GuestAdditions version:Virtualbox on your host claims:VBoxService inside the vm claims: 6.1.36Going on, assuming VBoxService is correct...Redirecting to /bin/systemctl start vboxadd-service.serviceJob for vboxadd-service.service failed because the control process exited with error code.See "systemctl status vboxadd-service.service" and "journalctl -xe" for details.Unmounting Virtualbox Guest Additions ISO from: /mntGot different reports about installed GuestAdditions version:Virtualbox on your host claims:VBoxService inside the vm claims: 6.1.36Going on, assuming VBoxService is correct...Got different reports about installed GuestAdditions version:Virtualbox on your host claims:VBoxService inside the vm claims: 6.1.36Going on, assuming VBoxService is correct...Got different reports about installed GuestAdditions version:Virtualbox on your host claims:VBoxService inside the vm claims: 6.1.36Going on, assuming VBoxService is correct...Restarting VM to apply changes...==> cent1: Attempting graceful shutdown of VM...==> cent1: Booting VM...==> cent1: Waiting for machine to boot. This may take a few minutes...==> cent1: Machine booted and ready!==> cent1: Checking for guest additions in VM... cent1: No guest additions were detected on the base box for this VM! Guest cent1: additions are required for forwarded ports, shared folders, host only cent1: networking, and more. If SSH fails on this machine, please install cent1: the guest additions and repackage the box to continue. cent1: cent1: This is not an error message; everything may continue to work properly, cent1: in which case you may ignore this message.==> cent1: Setting hostname...==> cent1: Configuring and enabling network interfaces...==> cent1: Mounting shared folders... cent1: /vagrant => C:/playground/VWS_vagrant_scriptVagrant was unable to mount VirtualBox shared folders. This is usuallybecause the filesystem "vboxsf" is not available. This filesystem ismade available via the VirtualBox Guest Additions and kernel module.Please verify that these guest additions are properly installed in theguest. This is not a bug in Vagrant and is usually caused by a faultyVagrant box. For context, the command attempted was: mount -t vboxsf -o uid=1000,gid=1000,_netdev vagrant /vagrant The error output from the command was: /sbin/mount.vboxsf: mounting failed with the error: No such device 어떻게 하면 수정하여 환경 구축할 수 있을지 알고 싶습니다. 감사합니다.
-
미해결3. 웹개발 코스 [스프링 프레임워크+전자정부 표준프레임워크]
?? 삐 소리 좀 에바아닌가요?
강의 어떤 부분도 웬만하면 언급안하고 싶었는데, 배경에 삐 소리는 좀 너무하지않나요? 귀가 아픕니다. 귀가...... 강의는 들어야겠고... 흠 이건 좀 너무한거같은데;; 거슬리는게 아니라, 강사님 말하는거 들으려고 하면 귀가 아픈데요;;
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
Dto 관련해서 질문드립니다!
안녕하세요! 로드맵 따라서 좋은 강의 잘 듣고 있습니다. 실제 프로젝트를 진행하면서도 들었던 의문인데 생성, 수정과 같은 역할이 다른 Dto이지만 동일한 값을 가져가는 Dto가 많이 생성되는 것을 느끼게 되었습니다. 실제 실무에서는 이런 경우 Dto를 어떻게 처리하시는지 궁금합니다! 동일하게 쓰이는 값들을 한 곳으로 모아 상속을 통해 하위 Dto를 만드는 방법도 생각해보았는데 이런 방법은 어떤지 궁금합니다.
-
미해결스프링부트 시큐리티 & JWT 강의
안녕하세요 강의 듣던중 JWT와 세션에 관해 의문이 들어 질문 남깁니다.
안녕하세요 좋은 강의 잘듣고 있습니다. 다름이 아니라 강의를 듣는중에 의문이 들어 질문 드립니다. 세션과 JWT의 차이가 세션을 유지하냐 안하냐의 차이로 알고 있는데 JWT를 쓸때 authenticaion 객체가 session 영역에 저장됨. 이라고 하셨는데, 인증정보를 세션 저장소에 저장하게 되면 결국 해당 세션을 유지하는 것 아닌가요? 차이가 없어지는 것 아닌가 싶어서 질문 남깁니다. 아, 그리고 추가로 github에 @AuthenticationPrincipal가 사용불가능이라 하셨는데 컨트롤러에서 불러와 보니까 잘 불러와지던데 제가 뭘 잘못한 걸까요?
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
persistence.xml 질문입니다.
새로운 프로젝트를 만들어서 다시 해보니까 h2.Driver가 오류로 뜹니다 이유가 뭘까요??
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
API 예외처리 동작순서 질문
영한님 안녕하세요! 질문드립니다...! API 예외처리 동작순서 질문 GET : http://localhost:8080/api/members/ex 1. WAS(/api/members/ex, Accept: application/json) -> 필터 -> 서블릿 -> 인터셉터 -> 컨트롤러 2. WAS(여기까지 전파) <- 필터 <- 서블릿 <- 인터셉터 <- 컨트롤러(RuntimeException 예외발생) 3. WAS 오류 페이지 확인 4. WAS(/error-page/500) -> 필터(x) -> 서블릿 -> 인터셉터(x) -> 컨트롤러(/error-page/500, HTTP 메시지 컨버터(ReturnValueHandler)) 로 이해하고 있는데 맞을까요?!
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
LCA2
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 제발 HELP MEㅠㅠ LCA2 백준 11438 http://boj.kr/261436dc78f24a0786640c9876a6ed08 강의에 없는 것도 질문 드려도 되나 모르겠는데 너무 간절해서 올립니다. 왜 시간초과가 나는건지 백준 게시판 싹싹 뒤져서 반례 돌려봐도 다 맞는데 왜 안돼는지 제발.... 아무나 좀 도와주세요ㅠㅠㅠ 큰돌선생님이 도와주시면 더더욱 감사하구요
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
hello-static.html 로딩이 안됩니다.
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요. http://localhost:8080/hello-static.html 주소 입력시 저는 에러창이 뜹니다.. 정적 컨텐츠 입니다. 라는 글씨가 안뜨고 밑에 ERROR 47127 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : 에러창이 뜹니다. 무엇이 잘못된 것인지 모르겠습니다...
-
미해결리액트로 나만의 블로그 만들기(MERN Stack)
webpack 설정 문제입니다.
저도 이 수업에서 올려주신 ckeditor5를 설치하고 webpack 설정을 하던중 @ckeditor/ckeditor5-dev-utils 와 @ckeditor/ckeditor5-dev-webpack-plugin 이 찾을수 없다고 하여 강의를 포기하게되었습니다.. 밑에글쓴분과 똑같은 오류로요.. 해결방법이있을까요?
-
미해결윤재성의 만들면서 배우는 Spring MVC 5
44강 데이터 베이스 테이블 만들기중인데, 테이블이 안 만들어집니다,.
강사님께서주신 테이블코드 복붙해서 sql develoment에 실행하였으나 명령의 1 행에서 시작하는 중 오류 발생 - create sequence user_seq start with 0 increment by 1 minvalue 0 오류 보고 - ORA-00955: 기존의 객체가 이름을 사용하고 있습니다. 00955. 00000 - "name is already used by an existing object" *Cause: *Action: 명령의 6 행에서 시작하는 중 오류 발생 - create sequence content_seq start with 0 increment by 1 minvalue 0 오류 보고 - ORA-00955: 기존의 객체가 이름을 사용하고 있습니다. 00955. 00000 - "name is already used by an existing object" *Cause: *Action: 명령의 11 행에서 시작하는 중 오류 발생 - create table board_info_table( board_info_idx number constraint BOARD_INFO_PK primary key, board_info_name varchar2(500) not null ) 오류 보고 - ORA-00955: 기존의 객체가 이름을 사용하고 있습니다. 00955. 00000 - "name is already used by an existing object" *Cause: *Action: 명령의 16 행에서 시작하는 중 오류 발생 - insert into board_info_table(board_info_idx, board_info_name) values (1, '자유게시판') 오류 보고 - ORA-00001: 무결성 제약 조건(EXAM.BOARD_INFO_PK)에 위배됩니다 명령의 17 행에서 시작하는 중 오류 발생 - insert into board_info_table(board_info_idx, board_info_name) values (2, '유머게시판') 오류 보고 - ORA-00001: 무결성 제약 조건(EXAM.BOARD_INFO_PK)에 위배됩니다 명령의 18 행에서 시작하는 중 오류 발생 - insert into board_info_table(board_info_idx, board_info_name) values (3, '정치게시판') 오류 보고 - ORA-00001: 무결성 제약 조건(EXAM.BOARD_INFO_PK)에 위배됩니다 명령의 19 행에서 시작하는 중 오류 발생 - insert into board_info_table(board_info_idx, board_info_name) values (4, '스포츠게시판') 오류 보고 - ORA-00001: 무결성 제약 조건(EXAM.BOARD_INFO_PK)에 위배됩니다 커밋 완료. 명령의 23 행에서 시작하는 중 오류 발생 - create table user_table( user_idx number constraint USER_PK primary key, user_name varchar2(50) not null, user_id varchar2(100) not null, user_pw varchar2(100) not null ) 오류 보고 - ORA-00955: 기존의 객체가 이름을 사용하고 있습니다. 00955. 00000 - "name is already used by an existing object" *Cause: *Action: 명령의 30 행에서 시작하는 중 오류 발생 - create table content_table( content_idx number constraint CONTENT_PK primary key, content_subject varchar2(500) not null, content_text long not null, content_file varchar2(500), content_writer_idx number not null constraint CONTENT_FK1 references user_table(user_idx), content_board_idx number not null constraint CONTENT_FK2 references board_info_table(board_info_idx), content_date date not null ) 오류 보고 - ORA-00942: 테이블 또는 뷰가 존재하지 않습니다 00942. 00000 - "table or view does not exist" *Cause: *Action: 러한 이유로 테이블이 만들어지지 않습니다..
-
미해결윤재성의 만들면서 배우는 Spring MVC 5
pom.xml 셋팅 질문
안녕하세요. 기본적으로 jsp, servlet, jstl, spring web mvc 모두 가장 최신버전 복붙하면 된다고 생각하면 되나요?
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
getStaticProps 질문드립니다.
안녕하세요. 강의 잘 듣고 있습니다. 블로그 게시글은 빈번하게 안 바뀌니까 getStaticProps를 사용해도 된다고 이해했습니다. 그럼 수정할 때는 어떻게 동작하나요? 다시 html 파일을 만드나요?
-
해결됨스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
itemService를 jpa 적용시 문제발생
[질문 내용]수업중에 만든 itemService에 jpa 기능을 적용해 보았는데 itemRepositoryTest 실행시 오류가 발생합니다. test에서는 메모리 DB를 사용하기위해 item-service/src/test/resources/application.yml에 아래 코드를 추가했습니다. spring: logging.level: org.hibernate.SQL: debug _________________________________________________________________ package hello.itemservice.domain.item;import org.junit.jupiter.api.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.test.context.SpringBootTest;import org.springframework.test.annotation.Rollback;import org.springframework.test.context.junit4.SpringRunner;import org.springframework.transaction.annotation.Transactional;import java.util.List;import static org.assertj.core.api.Assertions.*;@RunWith(SpringRunner.class)@SpringBootTestclass ItemRepositoryTest { @Autowired ItemRepository itemRepository; @Test @Transactional @Rollback(false) public void testItem() { //given Item item = new Item("itemZ", 10000, 10); //when Item savedItem = itemRepository.save(item); //then Item findItem = itemRepository.findById(item.getId()); assertThat(findItem).isEqualTo(savedItem); }} _____________________________________________________________ * 오류내용 java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:132) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:124) at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190) at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132) at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:244) at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:138) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$6(ClassBasedTestDescriptor.java:350) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.executeAndMaskThrowable(ClassBasedTestDescriptor.java:355) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$7(ClassBasedTestDescriptor.java:350) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312) at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735) at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeTestInstancePostProcessors(ClassBasedTestDescriptor.java:349) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$instantiateAndPostProcessTestInstance$4(ClassBasedTestDescriptor.java:270) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(ClassBasedTestDescriptor.java:269) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$2(ClassBasedTestDescriptor.java:259) at java.base/java.util.Optional.orElseGet(Optional.java:362) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$3(ClassBasedTestDescriptor.java:258) at org.junit.jupiter.engine.execution.TestInstancesProvider.getTestInstances(TestInstancesProvider.java:31) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$prepare$0(TestMethodTestDescriptor.java:101) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:100) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:65) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$prepare$1(NodeTestTask.java:111) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.prepare(NodeTestTask.java:111) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:79) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71) at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38) at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1354) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1204) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:410) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1334) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1153) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:907) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:582) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:123) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) ... 69 moreCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1334) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ... 97 moreCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ... 111 moreCaused by: org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.determineDriverClassName(DataSourceProperties.java:235) at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.initializeDataSourceBuilder(DataSourceProperties.java:176) at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration.createDataSource(DataSourceConfiguration.java:48) at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari.dataSource(DataSourceConfiguration.java:90) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ... 112 more __________________________________________________________ *Item package hello.itemservice.domain.item;import lombok.Getter;import lombok.Setter;import javax.persistence.*;@Getter @Setter@Entity@Table(name="item")public class Item { @Id @GeneratedValue private Long id; private String itemName; private int price; private int quantity; public Item() { } public Item(String itemName, Integer price, Integer quantity) { this.itemName = itemName; this.price = price; this.quantity = quantity; }}___________________________________________________* ItemRepositorypackage hello.itemservice.domain.item;import org.springframework.stereotype.Repository;import javax.persistence.EntityManager;import javax.persistence.PersistenceContext;import java.util.List;@Repositorypublic class ItemRepository { @PersistenceContext private EntityManager em; public Item save(Item item) { em.persist(item); return item; } public void deleteById(Long id) { Item item = em.find(Item.class, id); em.remove(item); } public Item findById(Long id) { return em.find(Item.class, id); } public List<Item> findAll() { return em.createQuery("select i from Item i", Item.class) .getResultList(); } public void update(Long itemId, Item updateParam) { Item savedItem = em.createQuery("select i from Item i where i.id = :id", Item.class) .setParameter("id", itemId) .getSingleResult(); savedItem.setItemName(updateParam.getItemName()); savedItem.setPrice(updateParam.getPrice()); savedItem.setQuantity(updateParam.getQuantity()); }}
-
미해결타입스크립트 입문 - 기초부터 실전까지
tslint 플러그인
플러그인을 깔고있는데 tslint플러그인에 대해서 해당 문구가 뜹니다. 그대로 깔면 되는것인지 다른 대체 플러그인이 있는것인 궁금합니다.
-
미해결[하루 10분|Web Project] HTML/JS/CSS로 나만의 심리테스트 사이트 만들기
마지막 결과에서 뒤에 배경(?)왜 강의처럼 안나올까요? 저 회색배경이요..ㅠ.ㅠ.
나머지는 괜찮은거같은데.. 결과도 .. 잘 나오고? 근데 왜 뒷 대지 안나올까욧 ㅠㅠㅠㅠㅠ
-
미해결[초중급편] 안드로이드 데이팅 앱 만들기(Android Kotlin)
Failed to compile values file
- 섹션 2를 시작하려다 발생한 문제입니다. 가상 에뮬레이터를 통해 잘 실행이 되다가 갑자기 되지 않습니다. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable > Resource compilation failed. Check logs for details. .gradle\caches\transforms-3\4a0459cf8027e878199dffe973fa9303\transformed\appcompat-1.2.0\res\values\values.xml:38:4: Invalid <color> for given resource value. => 이 부분에 대한 오류로 보입니다. 해당 코드는 <color name="highlighted_text_material_light">#66009688</color> 으로, 지우거나 대체해봐도 바로 윗 줄에서 동일한 오류가 발생합니다. 찾아보니 버전이나 이미지에 대한 오류로 보이기도 하는데 마땅한 해결되는 정보를 찾을 수 없어 질문드립니다.
-
미해결Slack 클론 코딩[백엔드 with NestJS + TypeORM]
loggerMiddleware로 morgan처럼 로깅하기 수업에서 @Injectable 부분 에러
LoggerMiddleware class를 작성하던 도중 @Injectable 데코레이터에서 2개의 에러가 납니다. 하나는 Decorator function return type 'ClassDecorator' is not assignable to type 'void | typeof LoggerMiddleware'. 데코레이터 함수 반환 유형 'ClassDecorator'은(는) 'void | typeof LoggerMiddleware' 유형에 할당할 수 없습니다. 라는 에러와 Type 'typeof LoggerMiddleware' has no properties in common with type 'ScopeOptions'. 'typeof LoggerMiddleware' 유형에 'ScopeOptions' 유형과 공통적인 속성이 없습니다. 라는 에러가 납니다 첫번째 에러는 검색하니 주로 데코레이터를 직접 만드신 분들이 내는 에러고 두번째 에러는 타입스크립트 버전을 올리신 분들이 겪는 에러로 보이는데 어떻게 해결할지 모르겠습니다.. 타입스크립트 버전을 내려야 할까요? 현재코드는 이렇습니다. import { NestMiddleware, Logger, Injectable } from '@nestjs/common'; import { Request , Response , NextFunction } from 'express'; @Injectable export class LoggerMiddleware implements NestMiddleware { private logger = new Logger('HTTP') use(req: Request, res: Response, next:NextFunction ) : void { const {ip , method , originalUrl } = req ; const userAgent = req.get('user-agent') || ''; res.on('finish', ()=>{ const {statusCode} = res; const contentLength = res.get("content-length") this.logger.log(`${method} ${originalUrl} ${statusCode} ${contentLength} ${userAgent} ${ip}`) }) next() } }