묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
게시글 구현하기 부분에서 갑자기 SyntaxError: Cannot use import statement outside a module 에러가 뜹니다
\react-nodebird\front\node_modules\antd\es\button\button-group.js:9import classNames from 'classnames'; 에러가 뜨는 경로는 이렇게 되어있고,button -group 부분 코드는 여기 아래에 있습니다.import React, {useCallback, useState} from 'react'; import {Avatar, Button, Card, Popover} from 'antd'; import {EllipsisOutlined, HeartOutlined, MessageOutlined, RetweetOutlined, } from '@ant-design/icons' import ButtonGroup from 'antd/es/button/button-group'; import { useSelector } from 'react-redux'; const PostCard = ({post}) => { const {me} = useSelector((state) => state.user); const id = me && me.id; const [liked, setLiked] = useState(false); const [commentFormOpened, setCommentFormOpened] = useState(false); const onToggleLike = useCallback(() => { setLiked((prev) => !prev); }, []); const onToggleComment = useCallback(() => { setCommentFormOpened((prev) => !prev); }, []) return ( <div style={{marginBottom:20}}> <Card cover ={post.Images[0] && <PostImages images = {post.Images} />} actions = {[ <RetweetOutlined key = 'retweet'/>, liked ? <HeartTwoTone twoToneColor="#eb2f96" key = 'heart' onClick={onToggleLike}/> : <HeartOutlined key = 'heart'/>, <MessageOutlined key ='comment' onClick={onToggleComment}/>, <Popover key = 'more' content = {( <Button.Group> {id && post.User.id === id ? ( <> <Button>수정</Button> <Button type ='danger'>삭제</Button> </> ) : <Button>신고</Button> } </Button.Group> )}> <EllipsisOutlined/> </Popover>, ]} > <Image /> <Card.Meta avatar = {<Avatar>{post.User.nickname[0]}</Avatar>} title = {post.User.nickname} description={post.content} /> <Button></Button> </Card> {commentFormOpened && <div> 댓글부분 </div>} {/*<CommentForm /> <Comments />*/} </div> ); }; export default PostCard;구글링을 진행하여 package.json파일에 "type" : "module"을 작성하라고 나와서 작성하고 코드를 실행하면 TypeError: styled_components__WEBPACK_IMPORTED_MODULE_4__.div is not a functionat eval (webpack-internal:///./components/LoginForm.js:21:73)이렇게 스타일드 컴포넌트에러가 납니다. 그래서 스타일드 컴포넌트를 사용하는 모든 부분을 지우고 진행을 하면 가장 처음에 나는 에러인 SyntaxError: Cannot use import statement outside a module이 에러가 등장합니다.모든 버전은 가장 최신 버전 사용했습니다. 열심히 찾았는데 정답이 보이지 않아서질문 드립니다.
-
해결됨Vue.js 완벽 가이드 - 실습과 리팩토링으로 배우는 실전 개념
`this.$emit("input", !this.value);` 의 의미가 궁금합니다.
this.$emit("input", !this.value); 의 의미가 궁금합니다.이벤트가 포함한 자신을 포함 input 태그에 value 를 두번째 파라미터 로 변경해라~라는 의미일까요?
-
미해결HTML+CSS+JS 포트폴리오 실전 퍼블리싱(시즌1)
마우스 올리면 배경이미지 변경하기 with jQuery 11:07분 질문 드립니다.
■ 질문 남기실 때 꼭! 참고해주세요.- 먼저 유사한 질문이 있었는지 검색해주세요.- 궁금한 부분이 있으시면 해당 강의의 타임라인 부분을 표시해주시면 좋습니다.- HTML, CSS, JQUERY 코드 소스를 텍스트 형태로 첨부해주시고 스크린샷도 첨부해주세요.- 다운로드가 필요한 파일은 해당 강의의 마지막 섹션에 모두 있습니다. .navi li a::before{ position: absolute; content: attr(data-text); top: 0; left: 0; width: 0; overflow: hidden; color: yellowgreen; transition: 0.5s; }이 부분에서 width: 0; 으로만 주면 왜 color 가 안없어지고 overflow: hidden; 까지 해야 color가 줄어드는지 잘 이해가 되지 않습니다.
-
해결됨실전! 코틀린과 스프링 부트로 도서관리 애플리케이션 개발하기 (Java 프로젝트 리팩토링)
JUnit5에서 의존성 주입에 대해 질문드립니다
기존에 프로젝트를 진행할 때 생성자를 통한 의존성 주입을 @Autowired를 생략하여 사용하고 있었습니다. 그런데 JUnit5로 테스트 코드를 작성할 때는 @Autowired를 생략하면 에러가 발생하더라구요. 강의에서와 같이 명시적으로 생성자에 @Autowired를 선언해야 동작하는 것을 확인할 수 있었습니다.(Java, Kotlin 모두) 에러 로그를 확인해보니 생성자의 파라미터에 대한 파라미터 Resolver가 등록되지 않았다고 합니다. 동일한 코드로 생성자를 통한 의존성 주입을 사용하는데, 메인 코드에는 @Autowired를 생략해도 정상적으로 동작하는 반면에 테스트 코드에서는 명시적으로 선언해야 동작하는 이유가 무엇인지 궁금합니다!
-
해결됨Vue.js 완벽 가이드 - 실습과 리팩토링으로 배우는 실전 개념
`cheked` 의 기본값이 `true` 인경우 는 어떻게 해야하나요?
cheked 의 기본값이 true 인경우 는 어떻게 해야하나요?처음부터 클릭된 상태로 만들고 싶은데 <template> <label class="checkbox" ><input type="checkbox" :value="value" @click="toggleCheckBox" :checked="value" /> 체크박스</label > </template> :checked 속성을 주는 것으로 해결하는데 맞나요?
-
해결됨프론트엔드 개발자를 위한, 실전 웹 성능 최적화(feat. React) - Part. 1
vue project에서 chrome performance tab 확인하기
제공해주신 예제 파일에서는 performance tab으로 돌려보면 어떤 컴포넌트의, 어떤 메서드인지 알 수 있는데 vue app을 실행시키고 똑같이 돌려보면 "컴파일 코드" 라고만 되어 있어서 이게 어떤 메서드인지 알 수가 없습니다. 이런 경우에는 어떻게 식별할 수 있을까요? 혹은 어떤 설정을 바꾸면 될까요?
-
미해결설계독학맛비's 실전 AI HW 설계를 위한 바이블, CNN 연산 완전정복 (Verilog HDL + FPGA 를 이용한 가속기 실습)
CNN bit 수 할당에 대해서 질문 있습니다.
안녕하세요 늘 좋은 강의 잘 듣고 있습니다. 이번 영상에서 input과 output의 bit 수를input feature map : 8bitweight : 8bitbias : 8bit input fmap * weight : 16bit 기타등등 CNN 연산을 수행하면서 input fmap bit width는 8bit에서 output fmap의 bit width가 23bit으로 증가하는데 그러면 CNN 구조를 serial하게 연결시키게 되면 계속해서 overflow가 발생하지 않도록 bit width를 증가시키면 bit width가 마지막 CNN 구조를 통과하고 나서 기하급수적으로 늘어난다고 생각하는데이러한 경우에 중간에 어떠한 조치를 취해야하는지 궁금합니다. 감사합니다
-
해결됨나도코딩의 자바 기본편 - 풀코스 (20시간)
equals 말고 contains 를 써도 될까요?
안녕하세요. 강의 잘 듣고 있습니다.if (student.certification.equals("자바"))if (student.certification.contains("자바"))이렇게 해도 결과값은 같게 나오는데 보통 equals를 많이 사용할까요?!
-
미해결뉴욕 프로덕트 디자이너가 알려주는, 입문자를 위한 UX디자인 개론
'유사성+근접성' 디자인 원리의 좋은/안좋은 UI사례 과제
비교 기준: 공공도서관 대출 이용 어플의 메인UI진행하다보니, 유사성과 근접성이 섞인 분석이 나왔습니다. 감사합니다.
-
해결됨나도코딩의 자바 기본편 - 풀코스 (20시간)
상속에서 생성자를 굳이 왜만드는건가요?
public class SpeedCam{ public String name; public SpeedCam() { this.name = name; } } public SpeedCam() 생성자를 만들어서 this name 을 받는건데 그냥 public String name = "과속 단속 카메라"; 이렇게 쓰면 되지않나요? 왜 생성자를 써야하는지 궁금합니다.
-
해결됨모든 개발자를 위한 HTTP 웹 기본 지식
브라우저 포트할당
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]클라이언트에서는 브라우저 창 하나당 포트 하나할당인가요?크롬 한창, 익스폴로러 두창이면 총 세포트 할당되나요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
H2 jdbc url
안녕하세요 강의를 듣던 중 h2 db와 연결이 정상적으로 되지 않는 것 같아 질문 남깁니다.기존에는 1. h2.bat을 실행시키고, 2. 웹 브라우저 ip 주소를 localhost로 변경하고 3. db파일을 생성하기 위해 JDBC URL에 jdbc:h2:~/jpashop과 같이 입력하면 c드라이브 사용자 폴더에 jpashop.mv.db 파일이 정상적으로 생성 됐었습니다근데 인텔리제이를 community버전에서 ultimate 버전으로 바꾸면서 뭔가 변동이 생긴 것인지(단순 추정입니다), 현재는 위와 같은 방식으로 진행해도 db파일이 생성되지 않고 Database "C:/Users/LG/jpashop" not found, either pre-create it or allow remote database creation (not recommended in secure environments) 과 같은 에러 메시지를 출력하는 것을 볼 수 있었습니다.따라서 다른 질문을 참조해보니, https://www.evernote.com/shard/s568/client/snv?noteGuid=fb1f3c6b-e985-e08f-4523-a34e523406e4¬eKey=e3976a810c1854c90695f9cddf1ab7bf&sn=https%3A%2F%2Fwww.evernote.com%2Fshard%2Fs568%2Fsh%2Ffb1f3c6b-e985-e08f-4523-a34e523406e4%2Fe3976a810c1854c90695f9cddf1ab7bf&title=H2%2B%25EB%258D%25B0%25EC%259D%25B4%25ED%2584%25B0%25EB%25B2%25A0%25EC%259D%25B4%25EC%258A%25A4%2B%25EC%2583%259D%25EC%2584%25B1%2B%25EB%25B0%25A9%25EB%25B2%2595%2528%25EC%259C%2588%25EB%258F%2584%25EC%259A%25B0%2529 링크를 확인할 수 있었고 h2에서 db파일을 따로 생성하여 작동에는 성공하였습니다.헌데, h2에서 db파일을 따로 생성하게 되면 trace.db 파일도 생성되고, 비밀번호도 설정해주고 yml에도 설정해줘야 하는 등 추가적인 작업이 있는 것을 확인할 수 있었습니다. 물론 별거 아닌 것들이지만, 기존에 쓰던 방식이 훨씬 편리한 것 같아 기존 방식(H2 콘솔의 JDBC URL 란을 통해 db파일을 생성)으로 돌아갈 수 있는 방법을 여쭙고 싶습니다.에러 로그로 확인해 봤을 때 allow remote database creation을 해주면 될 것 같은데, 이에 대해 질의드리고자 합니다.
-
미해결뉴욕 프로덕트 디자이너가 알려주는, 입문자를 위한 UX디자인 개론
좋은/안좋은 UX 사례 과제
상황: 특정 장소 선택 후 원래 맵(기본화면) 상태로 돌아가고싶다.
-
미해결대세는 쿠버네티스 (초급~중급편)
mac pro M1은 안되네요 ..
Bringing machine 'k8s-master' up with 'virtualbox' provider... Bringing machine 'k8s-node1' up with 'virtualbox' provider... Bringing machine 'k8s-node2' up with 'virtualbox' provider... ==> k8s-master: Importing base box 'centos/7'... ==> k8s-master: Matching MAC address for NAT networking... ==> k8s-master: Checking if box 'centos/7' version '2004.01' is up to date... ==> k8s-master: Setting the name of the VM: k8s_k8s-master_1673313406363_35180 ==> k8s-master: Clearing any previously set network interfaces... ==> k8s-master: Preparing network interfaces based on configuration... k8s-master: Adapter 1: nat k8s-master: Adapter 2: hostonly ==> k8s-master: Forwarding ports... k8s-master: 22 (guest) => 2222 (host) (adapter 1) ==> k8s-master: Running 'pre-boot' VM customizations... ==> k8s-master: Booting VM... ==> k8s-master: Waiting for machine to boot. This may take a few minutes... k8s-master: SSH address: 127.0.0.1:2222 k8s-master: SSH username: vagrant k8s-master: SSH auth method: private key k8s-master: Warning: Connection reset. Retrying... The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'. The machine is in the 'aborted' state. Please verify everything is configured properly and try again. If the provider you're using has a GUI that comes with it, it is often helpful to open that and watch the machine, since the GUI often has more helpful error messages than Vagrant can retrieve. For example, if you're using VirtualBox, run `vagrant up` while the VirtualBox GUI is open. The primary issue for this error is that the provider you're using is not properly configured. This is very rarely a Vagrant issue.virtual box 버전이 최신에서만 m1이 되다보니.. 안되는 거 같습니다.
-
미해결피그마(Figma)를 활용한 UI디자인 입문부터 실전까지 A to Z
디자인 시스템 단계에 대해서 좀 더 설명 부탁드립니다.
안녕하세요. 프로토타이핑 단계와 디자인 시스템 단계가 구분되어 있는데, 혹시 두 단계가 정확히 어떻게 다른 건가요? 디자인 시스템 단계에서 정확히 어떤 일을 하는 건지 분명하지 않은 것 같습니다. 감사합니다.
-
미해결스프링 시큐리티
csrfTokenRepo 관련 질문입니다.
안녕하세요 정수원 선생님 질문이 있습니다.httpSecurity .csrf().csrfTokenRepository(new HttpSessionCsrfTokenRepository()); 처럼 세션에 저장하는 경우에 응답으로 csrf token 관련 정보들이 response에 존재하지 않는데해당 경우에는 custom하게 필터를 만들어서 세션에 저장후 응답에 적절한 id(csrfJSessinID?) 를 넣어줘서나중에 검증할 수 있도록 해야하나요? client 입장에서는 어떻게 csrf token을 http 요청헤더에 넣을 수 있나요?
-
미해결스프링 프레임워크 입문
Casheable 에서 서버 이중화시에도 적용이 되나요?
강의 감사합니다.Cacheable은 서버내에 저장이 되는것이지요?서버 이중화 되는 경우 캐쉬정보는 동기화는 가능 한가요?접속 때마다 다른 서버로 접속 되는 경우, 캐쉬 활용이 가능한가요?강의 정말 잘 들었고, 수고 하셨습니다.감사합니다.
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
const가 이런 경우에는 왜 오류가 안나는거죠 ?
function solution(s) { s = "gg"; return s; } const str = "gooG"; console.log(solution(str));예제를 하다가 보통 solution에게 매개변수로 넘겨주는 값이 let로 되어 있어서 const로 바꾸어 보았는데요 str은 const이고 solution 함수로 전달되어서 str값을 변경을 시켜주었는데 오류가 안나고 변경이 되더라구요 const는 상수이고 변할수 없는 값인데요 이런경우 어떻게 변할수가 있는거죠 ?
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
Failed to load ApplicationContext 에러 문의
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예)[질문 내용]springJPA 테스트 중 아래와 같은 내용의 에러가 떴는데 해결 방법을 모르겠습니다.....java.lang.IllegalStateException: Failed to load ApplicationContextat org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:98)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:248)at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:138)at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$8(ClassBasedTestDescriptor.java:363)at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.executeAndMaskThrowable(ClassBasedTestDescriptor.java:368)at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$9(ClassBasedTestDescriptor.java:363)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:1655)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:362)at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$instantiateAndPostProcessTestInstance$6(ClassBasedTestDescriptor.java:283)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(ClassBasedTestDescriptor.java:282)at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$4(ClassBasedTestDescriptor.java:272)at java.base/java.util.Optional.orElseGet(Optional.java:369)at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$5(ClassBasedTestDescriptor.java:271)at org.junit.jupiter.engine.execution.TestInstancesProvider.getTestInstances(TestInstancesProvider.java:31)at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$prepare$0(TestMethodTestDescriptor.java:102)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:101)at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:66)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$prepare$2(NodeTestTask.java:123)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.platform.engine.support.hierarchical.NodeTestTask.prepare(NodeTestTask.java:123)at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:90)at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)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:114)at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:57)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 'springConfig' defined in file [C:\Users\JANE\Downloads\hello-spring\out\production\classes\hello\hellospring\SpringConfig.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springDataJpaMemberRepository' defined in hello.hellospring.repository.SpringDataJpaMemberRepository 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 java.util.List hello.hellospring.repository.MemberRepository.findByAll(); Reason: Failed to create query for method public abstract java.util.List hello.hellospring.repository.MemberRepository.findByAll()! No property 'all' found for type 'Member'; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List hello.hellospring.repository.MemberRepository.findByAll()! No property 'all' found for type 'Member'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:1372)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)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.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:136)at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:141)at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:90)... 71 moreCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springDataJpaMemberRepository' defined in hello.hellospring.repository.SpringDataJpaMemberRepository 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 java.util.List hello.hellospring.repository.MemberRepository.findByAll(); Reason: Failed to create query for method public abstract java.util.List hello.hellospring.repository.MemberRepository.findByAll()! No property 'all' found for type 'Member'; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List hello.hellospring.repository.MemberRepository.findByAll()! No property 'all' found for type 'Member'at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)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:1391)at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)... 89 moreCaused by: org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract java.util.List hello.hellospring.repository.MemberRepository.findByAll(); Reason: Failed to create query for method public abstract java.util.List hello.hellospring.repository.MemberRepository.findByAll()! No property 'all' found for type 'Member'; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List hello.hellospring.repository.MemberRepository.findByAll()! No property 'all' found for type 'Member'at org.springframework.data.repository.query.QueryCreationException.create(QueryCreationException.java:101)at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.lookupQuery(QueryExecutorMethodInterceptor.java:107)at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.lambda$mapMethodsToQuery$1(QueryExecutorMethodInterceptor.java:95)at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)at java.base/java.util.Collections$UnmodifiableCollection$1.forEachRemaining(Collections.java:1054)at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.mapMethodsToQuery(QueryExecutorMethodInterceptor.java:97)at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.lambda$new$0(QueryExecutorMethodInterceptor.java:87)at java.base/java.util.Optional.map(Optional.java:265)at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.<init>(QueryExecutorMethodInterceptor.java:87)at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:365)at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:323)at org.springframework.data.util.Lazy.getNullable(Lazy.java:231)at org.springframework.data.util.Lazy.get(Lazy.java:115)at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:329)at org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:144)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)... 100 moreCaused by: java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List hello.hellospring.repository.MemberRepository.findByAll()! No property 'all' found for type 'Member'at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.<init>(PartTreeJpaQuery.java:96)at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:119)at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$CreateIfNotFoundQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:259)at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$AbstractQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:93)at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.lookupQuery(QueryExecutorMethodInterceptor.java:103)... 122 moreCaused by: org.springframework.data.mapping.PropertyReferenceException: No property 'all' found for type 'Member'at org.springframework.data.mapping.PropertyPath.<init>(PropertyPath.java:91)at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:438)at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:414)at org.springframework.data.mapping.PropertyPath.lambda$from$0(PropertyPath.java:367)at java.base/java.util.concurrent.ConcurrentMap.computeIfAbsent(ConcurrentMap.java:330)at org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:349)at org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:332)at org.springframework.data.repository.query.parser.Part.<init>(Part.java:81)at org.springframework.data.repository.query.parser.PartTree$OrPart.lambda$new$0(PartTree.java:250)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.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)at org.springframework.data.repository.query.parser.PartTree$OrPart.<init>(PartTree.java:251)at org.springframework.data.repository.query.parser.PartTree$Predicate.lambda$new$0(PartTree.java:384)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.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)at org.springframework.data.repository.query.parser.PartTree$Predicate.<init>(PartTree.java:385)at org.springframework.data.repository.query.parser.PartTree.<init>(PartTree.java:96)at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.<init>(PartTreeJpaQuery.java:89)... 126 more 오타 난 건가 해서 복붙했는데도 같은 에러가 뜨고 있습니다 ...
-
미해결스프링부트 시큐리티 & JWT 강의
jwt 토큰 만료시간에 대해서
안녕하세요 강의 잘 들었습니다 !!다름이 아니라 토큰 만료 시간을 엄청 길게(100000초) 했는데도자꾸 몇 분 만에 토큰이 만기(TokenExpiredException) 되었다고 해서 .....(프론트는Android studio랑 연동)뭔가 이상해서 혹시 이런 증상에 대해 해결책은 없는지 궁금합니다.