묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨스프링 시큐리티
12) 예외 처리 및 요청 캐시 필터 9:27 초 질문입니다.
안녕하세요 정수원 선생님아래 질문글을 읽다가 김또깡님이 anonymous로 인증된 것은 인가가 아직 안되었으니 ExceptionTranslationFilter catch 문에 걸리는게 이해가 간다하셨지만remember me 로 인증된 요청은 왜 인증예외로 빠지게 되는가 질문한글을 보았습니다. 9:27에 말씀하실려는 의도가 remember me 토큰이 변경되어서 RememberMeAuthenticationFilter에서 rememberMeServices.autologin을 실패하여 ExceptionTranslationFilter의 catch문으로 간다는것을 말씀하신건가요?아니면 김또깡님 질문에 답변주신 Fully Authenticated 랑 관련이있는것인가요?제가 실제로 해보니 remember me 로 인증된 요청이 ExceptionTraslationFilter로 catch문으로 안가고 remember me token이 변경되었을때만 가길레 혹시 놓친게 있나해서 문의 남깁니다.
-
미해결[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
SQflite 관련 질문
SQflite 관련하여, flutter 공식문서에는 drift 패키지를 사용하지 않는 방식으로 주로 설명이 되어있고, 구글링으로 다른 많은 자료들을 봐도, 각자 생성 방식이 굉장히 많이 다른 것 같더라고요.혹시 강의에 나오진 않았지만, 강사님이 생각하시는 가장 편한 SQlite 사용방식이 따로 있을까요?잘 따라오다가 로컬 db생성 부분에서 조금 막히네요 ㅠㅠ쉽게 이해할 수 있는 관련 링크같은게 있다면 꼭 부탁드립니다 ㅠㅠ
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
강의자료 요청드립니다.
인녕하세요 수업 너무 잘 듣고있어요쭉 따라간다면 제 실력도 많이 향상될 거라 믿습니다.다름이 아니라 처음 강의수강할 때 강의자료를 전부 다운로드 받았었는데 하나도 열리지 않습니다.이유가 무엇일까여?강의자료 부탁드리겠습니당lhs3265@naver.com
-
미해결[개정판 2023-11-27] Spring Boot 3.x 를 이용한 RESTful Web Services 개발
WebSecurityConfigurerAdapter deprecated 질문
수업 내용에서 WebSecurityConfigurerAdapter deprecated됨에 따라 securityConfig를 어떻게 구성해야하는지 알려주세요!
-
해결됨실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
문제가 발생 할 수 있는 이유가 이해가 되지 않습니다.
private void validateDuplicateMember(Member member) { List<Member> findMembers = memberRepository.findByName(member.getName()); if (!findMembers.isEmpty()){ throw new IllegalStateException("이미 존재하는 회원 입니다."); } }에서 memberA가 동시에 DB에 insert 될때 validateduplicate를 통과하면 동시에 memberA가 로직을 호출하게 되면 memberA라는이름으로 두명이 가입 됩니다. 그래서 memberA에 제약을 건다구 하셨는데제약을 거는거 어떤건지 잘 모르겠습니다. 1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요.
-
미해결[백문이불여일타] 데이터 분석을 위한 중급 SQL
자막 관련
최근까지 자막이 보였던 것 같은데 갑자기 모든 영상에서 사라졌네요ㅠㅠ자막 지원 다시 안되나요?
-
미해결탄탄한 백엔드 NestJS, 기초부터 심화까지
안녕하세요. 배포관련 질문이 있습니다.
안녕하세요~ 강의 잘듣고 있습니다. 배포에서 질문이 있어 남깁니다.현재 배포방식은 dist, packagejson, packagelockjson 이렇게 3개를 새로 만든 github repo에 올리는 방식인데요.여기서 질문입니다.나중에 새로운 라이브러리를 설치하거나 그러면 다시 빌드해서 업데이트 시켜주는 것은 기본으로 하고, packagejson, packagelockjson도 복사해서 붙여넣기 하는 것이 맞나요?그 다음 light sail에서 pull 해준다음 npm install 다시 해주는 것이 맞는 flow인지 궁금해서 질문 남깁니다. 감사합니다.
-
미해결[입문자를 위한 UE5] Part1. 언리얼 엔진 블루프린트
변수는 protected로 설정을 못하나요?
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 변수를 보면 private 밖에 안보여서 질문드립니다!
-
미해결따라하며 배우는 HTML, CSS
인라인 요소 질문
인라인 요소 공부하던 중에 질문이 있습니다...!11줄처럼 인라인요소를 작성한 것과 16~20줄처럼 인라인요소를 작성한 결과에서 출력이 차이가 납니다.1) 인라인요소는 너비 공간이 부족하면 줄바꿈이 되는 특징이 있는데 11줄과 같이 한줄에 인라인요소 작성시 줄바꿈이 되지 않고 스크롤이 생기는 이유는 뭔가요?2) 11줄의 세번째 a태그와 16~20줄의 3번째 a태그 부분이 출력된 화면을 보면 미세하지만 스페이스 하나 정도의 차이가 나는 것 같은데 html에서 enter는 스페이스로 출력되는건가요?
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
삭제버튼 클릭시 정상적으로 삭제되지만 트렌지션 효과로 보이는 값은 맨 마지막값으로 보입니다.
이렇게 Todo가 있다고 하고, 2번을 삭제하면 정상적으로 삭제됩니다.하지만 아래 삭제되는 트렌지션 효과를 보면 맨 마지막 숫자인 7이 사라지는 것처럼 보이게 되는데 혹시 이것을 현재 지운 값으로 보이게 하려면 어떻게 해야할까요..?항상 좋은 강의 감사합니다!
-
미해결스프링부트 시큐리티 & JWT 강의
세션에 저장된 로그인 된 정보 가져올 시 코드 질문입니다.
@GetMapping("/loginForm") public String loginForm(HttpSession session, @AuthenticationPrincipal PrincipalDetails userDetails) { //로그인 되어있을 때, 로그인 폼으로 이동하는 경우 메인 페이지로 이동 if(userDetails != null) { System.out.println("현재 사용자: " + userDetails.getUser()); return "redirect:/"; } return "loginForm"; }위와 같이 사용자 정보를 가져오는 것이 맞을까요? User가 잘 출력되긴하나 정확하게 짚고 넘어가고 싶어서 질문 드립니다. 아 그리고 로그인 성공을 했을 시 세션에 로그인 정보가 저장될텐데 개발자 도구로 봤을 시 위와 같이 세션에 아무 정보도 없던데 원래 보이지 않는 것 인가요? 세션에 로그인 한 정보가 저장되는데 "내 정보 보기" 같은 기능처럼 로그인 사용자의 User엔티티가 필요할 때마다 세션에 있는 해당 로그인 정보로 DB를 조회하여 원하는 엔티티를 꺼내와서 사용하는 것이 맞을까요? 제가 이렇게 생각한 이유는 세션의 로그인 정보는 로그아웃 후 다시 로그인을 하기 전까진 변하지 않기 때문에 세션의 User와 DB의 User가 일치하지 않을 수도 있기 때문입니다. 미리 감사드립니다 ㅠㅠ
-
해결됨14일만에 배우는 ASP.NET CORE
14일만에 배우는 ASP.NET CORE 질문
첫 강의 visual studio 2017 프로젝트 설치 강의가 있는데요.저는 visual studio 2022 기반이라 내용과 너무틀려 따라하기기 애매한데요.해결책이 있을까요?
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
스프링 통합 테스트에서 에러가 발생합니다
https://www.inflearn.com/questions/734751/java-lang-illegalstateexception-failed-to-load-applicationcontext-%EC%98%A4%EB%A5%98-%EC%A7%88%EB%AC%B8%EB%93%9C%EB%A6%BD%EB%8B%88%EB%8B%A4위 링크에서 공식 서포터즈 David님이 properties에 spring.datasource.username:과 spring.datasource.password:를 추가하라고 조언해주셨는데 새로운 에러가 발생하였습니다...구글링한 결과 java.lang.NumberFormatException: For input string: "spring"는 잘못된 형변환으로 자료형 불일치일 경우 발생하는 에러라는데 강사님 코드와 제 코드를 비교해봐도 어디가 잘못된건지 잘 모르겠습니다현재 회원가입 테스트와 중복 회원 예외 테스트 둘다 같은 에러가 뜨는 것으로 보이는데 아래에 제가 작성한 코드와 에러를 첨부하였습니다https://drive.google.com/file/d/1PWlxQRc22JKmjN8X8jfaJp7zdP3Fssfh/view?usp=sharing 2023-01-09 12:06:54.744 INFO 5900 --- [ Test worker] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@5a12c728 testClass = MemberServiceIntegrationTest, testInstance = hello.hellospring.service.MemberServiceIntegrationTest@18ff1520, testMethod = 중복_회원_예외@MemberServiceIntegrationTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@79ab3a71 testClass = MemberServiceIntegrationTest, locations = '{}', classes = '{class hello.hellospring.HelloSpringApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@2fea7088, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@13e3c1c7, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@5b40ceb, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@36546a22, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@636e8cc, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@bb9e6dc], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]]; transaction manager [org.springframework.orm.jpa.JpaTransactionManager@34f48d1]; rollback [true]2023-01-09 12:06:54.952 INFO 5900 --- [ Test worker] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@5a12c728 testClass = MemberServiceIntegrationTest, testInstance = hello.hellospring.service.MemberServiceIntegrationTest@18ff1520, testMethod = 중복_회원_예외@MemberServiceIntegrationTest, testException = org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [select * from member where id = ?]; Data conversion error converting "spring"; SQL statement:select * from member where id = ? [22018-214]; nested exception is org.h2.jdbc.JdbcSQLDataException: Data conversion error converting "spring"; SQL statement:select * from member where id = ? [22018-200] at org.h2.message.DbException.getJdbcSQLException(DbException.java:457) at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) at org.h2.message.DbException.get(DbException.java:194) at org.h2.value.Value.convertTo(Value.java:875) at org.h2.value.Value.convertTo(Value.java:737) at org.h2.mvstore.db.MVPrimaryIndex.getKey(MVPrimaryIndex.java:395) at org.h2.mvstore.db.MVDelegateIndex.find(MVDelegateIndex.java:87) at org.h2.index.BaseIndex.find(BaseIndex.java:148) at org.h2.index.IndexCursor.find(IndexCursor.java:163) at org.h2.table.TableFilter.next(TableFilter.java:498) at org.h2.command.dml.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1843) at org.h2.result.LazyResult.hasNext(LazyResult.java:101) at org.h2.result.LazyResult.next(LazyResult.java:60) at org.h2.command.dml.Select.queryFlat(Select.java:737) at org.h2.command.dml.Select.queryWithoutCache(Select.java:844) at org.h2.command.dml.Query.queryWithoutCacheLazyCheck(Query.java:201) at org.h2.command.dml.Query.query(Query.java:489) at org.h2.command.dml.Query.query(Query.java:451) at org.h2.command.CommandContainer.query(CommandContainer.java:285) at org.h2.command.Command.executeQuery(Command.java:195) at org.h2.server.TcpServerThread.process(TcpServerThread.java:343) at org.h2.server.TcpServerThread.run(TcpServerThread.java:183) at java.base/java.lang.Thread.run(Thread.java:834)Caused by: java.lang.NumberFormatException: For input string: "spring" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Long.parseLong(Long.java:692) at java.base/java.lang.Long.parseLong(Long.java:817) at org.h2.value.Value.convertToLong(Value.java:1011) at org.h2.value.Value.convertTo(Value.java:808) ... 19 more, mergedContextConfiguration = [WebMergedContextConfiguration@79ab3a71 testClass = MemberServiceIntegrationTest, locations = '{}', classes = '{class hello.hellospring.HelloSpringApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@2fea7088, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@13e3c1c7, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@5b40ceb, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@36546a22, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@636e8cc, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@bb9e6dc], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]]PreparedStatementCallback; SQL [select * from member where id = ?]; Data conversion error converting "spring"; SQL statement:select * from member where id = ? [22018-214]; nested exception is org.h2.jdbc.JdbcSQLDataException: Data conversion error converting "spring"; SQL statement:select * from member where id = ? [22018-200] at org.h2.message.DbException.getJdbcSQLException(DbException.java:457) at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) at org.h2.message.DbException.get(DbException.java:194) at org.h2.value.Value.convertTo(Value.java:875) at org.h2.value.Value.convertTo(Value.java:737) at org.h2.mvstore.db.MVPrimaryIndex.getKey(MVPrimaryIndex.java:395) at org.h2.mvstore.db.MVDelegateIndex.find(MVDelegateIndex.java:87) at org.h2.index.BaseIndex.find(BaseIndex.java:148) at org.h2.index.IndexCursor.find(IndexCursor.java:163) at org.h2.table.TableFilter.next(TableFilter.java:498) at org.h2.command.dml.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1843) at org.h2.result.LazyResult.hasNext(LazyResult.java:101) at org.h2.result.LazyResult.next(LazyResult.java:60) at org.h2.command.dml.Select.queryFlat(Select.java:737) at org.h2.command.dml.Select.queryWithoutCache(Select.java:844) at org.h2.command.dml.Query.queryWithoutCacheLazyCheck(Query.java:201) at org.h2.command.dml.Query.query(Query.java:489) at org.h2.command.dml.Query.query(Query.java:451) at org.h2.command.CommandContainer.query(CommandContainer.java:285) at org.h2.command.Command.executeQuery(Command.java:195) at org.h2.server.TcpServerThread.process(TcpServerThread.java:343) at org.h2.server.TcpServerThread.run(TcpServerThread.java:183) at java.base/java.lang.Thread.run(Thread.java:834)Caused by: java.lang.NumberFormatException: For input string: "spring" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Long.parseLong(Long.java:692) at java.base/java.lang.Long.parseLong(Long.java:817) at org.h2.value.Value.convertToLong(Value.java:1011) at org.h2.value.Value.convertTo(Value.java:808) ... 19 moreorg.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [select * from member where id = ?]; Data conversion error converting "spring"; SQL statement:select * from member where id = ? [22018-214]; nested exception is org.h2.jdbc.JdbcSQLDataException: Data conversion error converting "spring"; SQL statement:select * from member where id = ? [22018-200] at org.h2.message.DbException.getJdbcSQLException(DbException.java:457) at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) at org.h2.message.DbException.get(DbException.java:194) at org.h2.value.Value.convertTo(Value.java:875) at org.h2.value.Value.convertTo(Value.java:737) at org.h2.mvstore.db.MVPrimaryIndex.getKey(MVPrimaryIndex.java:395) at org.h2.mvstore.db.MVDelegateIndex.find(MVDelegateIndex.java:87) at org.h2.index.BaseIndex.find(BaseIndex.java:148) at org.h2.index.IndexCursor.find(IndexCursor.java:163) at org.h2.table.TableFilter.next(TableFilter.java:498) at org.h2.command.dml.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1843) at org.h2.result.LazyResult.hasNext(LazyResult.java:101) at org.h2.result.LazyResult.next(LazyResult.java:60) at org.h2.command.dml.Select.queryFlat(Select.java:737) at org.h2.command.dml.Select.queryWithoutCache(Select.java:844) at org.h2.command.dml.Query.queryWithoutCacheLazyCheck(Query.java:201) at org.h2.command.dml.Query.query(Query.java:489) at org.h2.command.dml.Query.query(Query.java:451) at org.h2.command.CommandContainer.query(CommandContainer.java:285) at org.h2.command.Command.executeQuery(Command.java:195) at org.h2.server.TcpServerThread.process(TcpServerThread.java:343) at org.h2.server.TcpServerThread.run(TcpServerThread.java:183) at java.base/java.lang.Thread.run(Thread.java:834)Caused by: java.lang.NumberFormatException: For input string: "spring" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Long.parseLong(Long.java:692) at java.base/java.lang.Long.parseLong(Long.java:817) at org.h2.value.Value.convertToLong(Value.java:1011) at org.h2.value.Value.convertTo(Value.java:808) ... 19 more at app//org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:251) at app//org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70) at app//org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1541) at app//org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:667) at app//org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:713) at app//org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:744) at app//org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:757) at app//org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:815) at app//hello.hellospring.repository.JdbcTemplateMemberRepository.findByName(JdbcTemplateMemberRepository.java:52) at app//hello.hellospring.service.MemberService.validateDuplicateMember(MemberService.java:31) at app//hello.hellospring.service.MemberService.join(MemberService.java:25) at app//hello.hellospring.service.MemberServiceIntegrationTest.중복_회원_예외(MemberServiceIntegrationTest.java:47) at java.base@11/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base@11/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base@11/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base@11/java.lang.reflect.Method.invoke(Method.java:566) at app//org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725) at app//org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at app//org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at app//org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) at app//org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) at app//org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84) at app//org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at app//org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at app//org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at app//org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at app//org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at app//org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at app//org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at app//org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at app//org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214) at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at app//org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210) at app//org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135) at app//org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151) at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) at app//org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) at java.base@11/java.util.ArrayList.forEach(ArrayList.java:1540) at app//org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) at app//org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) at java.base@11/java.util.ArrayList.forEach(ArrayList.java:1540) at app//org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) at app//org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) at app//org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35) at app//org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at app//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 org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:99) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:79) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:75) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62) at java.base@11/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base@11/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base@11/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base@11/java.lang.reflect.Method.invoke(Method.java:566) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94) at com.sun.proxy.$Proxy2.stop(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193) at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129) at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100) at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60) at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56) at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113) at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65) at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69) at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)Caused by: org.h2.jdbc.JdbcSQLDataException: Data conversion error converting "spring"; SQL statement:select * from member where id = ? [22018-200] at org.h2.message.DbException.getJdbcSQLException(DbException.java:457) at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) at org.h2.message.DbException.get(DbException.java:194) at org.h2.value.Value.convertTo(Value.java:875) at org.h2.value.Value.convertTo(Value.java:737) at org.h2.mvstore.db.MVPrimaryIndex.getKey(MVPrimaryIndex.java:395) at org.h2.mvstore.db.MVDelegateIndex.find(MVDelegateIndex.java:87) at org.h2.index.BaseIndex.find(BaseIndex.java:148) at org.h2.index.IndexCursor.find(IndexCursor.java:163) at org.h2.table.TableFilter.next(TableFilter.java:498) at org.h2.command.dml.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1843) at org.h2.result.LazyResult.hasNext(LazyResult.java:101) at org.h2.result.LazyResult.next(LazyResult.java:60) at org.h2.command.dml.Select.queryFlat(Select.java:737) at org.h2.command.dml.Select.queryWithoutCache(Select.java:844) at org.h2.command.dml.Query.queryWithoutCacheLazyCheck(Query.java:201) at org.h2.command.dml.Query.query(Query.java:489) at org.h2.command.dml.Query.query(Query.java:451) at org.h2.command.CommandContainer.query(CommandContainer.java:285) at org.h2.command.Command.executeQuery(Command.java:195) at org.h2.server.TcpServerThread.process(TcpServerThread.java:343) at org.h2.server.TcpServerThread.run(TcpServerThread.java:183) at java.base/java.lang.Thread.run(Thread.java:834)Caused by: java.lang.NumberFormatException: For input string: "spring" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Long.parseLong(Long.java:692) at java.base/java.lang.Long.parseLong(Long.java:817) at org.h2.value.Value.convertToLong(Value.java:1011) at org.h2.value.Value.convertTo(Value.java:808) ... 19 more at app//org.h2.message.DbException.getJdbcSQLException(DbException.java:506) at app//org.h2.engine.SessionRemote.readException(SessionRemote.java:637) at app//org.h2.engine.SessionRemote.done(SessionRemote.java:606) at app//org.h2.command.CommandRemote.executeQuery(CommandRemote.java:171) at app//org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:128) at app//com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52) at app//com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java) at app//org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:722) at app//org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:651) ... 93 more
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 레딧 사이트 만들기(NextJS)(Pages Router)
배포후 에러
{ "extends": ["next"]}선생님 안녕하세요.eslintrc.json 변경후 배포하니 잘되었습니다.그런데 커뮤니티 사진 변경시 오류가나서 "message": "Parsing error: Cannot find module 'next/babel'\nRequire stack:\n- C:\\Users\\DELL\\Desktop\\reddit-clone-app\\client\\node_modules\\next\\dist\\compiled\\babel\\bundle.js\n- C:\\Users\\DELL\\Desktop\\reddit-clone-app\\client\\node_modules\\next\\dist\\compiled\\babel\\eslint-parser.js\n- C:\\Users\\DELL\\Desktop\\reddit-clone-app\\client\\node_modules\\eslint-config-next\\parser.js\n- C:\\Users\\DELL\\Desktop\\reddit-clone-app\\client\\node_modules\\@eslint\\eslintrc\\dist\\eslintrc.cjs", "source": "eslint", "startLineNumber": 1, "startColumn": 1, "endLineNumber": 1, "endColumn": 1node_modules 다시설치해보고 했는데 해결이 안되더라구요그러다터미널에서 client,도커, server 실행은되는데 localhost:3000 들어가니 터미널에서 client 오류뜨고localhost:3000에서 server error 가 떳어요Server Error Error: Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>. Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor This error happened while generating the page. Any console logs will be displayed in the terminal window.server localhost:3000이어서 그런건가요
-
미해결스프링 핵심 원리 - 기본편
수업질문
의존관계 자동주입에서 질문있습니다.(영상시간 18분 16초) @Autowired를 통해 의존관계 주입에서 자료타입에 따라 설정된다고 하였는데, DiscountPolicy 자료타입에서 rateDicountPolicy가 @Component 설정이 되어있어서 rateDicountPolicy 만 의존관계 자동주입설정된건가요? @Component 유무에 따라서 자료타입지정이 가능하면 자료타입 중(FixDiscountPolicy,RateDiscountPolicy) 하나만 설정으로 해야겠네요?? 여러개를 설정하면 충돌에러가 뜨나요?
-
미해결스프링 시큐리티 OAuth2
중복로그인
안녕하세요, 좋은 강의 올려주셔서 정말 감사합니다. 강의 덕분에 프로젝트를 무사히 할 수 있게 되었습니다. jwt 구현하면서 궁금한 점이 생겨 질문을 남기게 되었습니다. jwt를 사용하면서 컴퓨터 a에서 로그인하고 나서 컴퓨터 b에서 로그인을 할 경우,중복 로그인이 발생하는데 이전 강사님 강의에서는 세션을 사용하면 세션에서 방지할 수 있다고 배웠으나 jwt에서는 세션을 사용하지 않기 때문에 중복 로그인을 어떻게 막을 수 있는 지 궁금하여 질문을 남기게 되었습니다. 나름대로 찾아본 결과, 디비에 로그인을 시도에 대한 컬럼을 넣고 이전 로그인의 토큰을 무효화하고 이후에 들어온 로그인에 대한 토큰으로 인증을 처리-> 이렇게 되면 액세스 토큰, 리프레시 토큰을 모두 디비에 넣던가, 아니면 액세스 토큰의 만료시간을 굉장히 작게 잡아서 사용해야 할 것 같은데 모두 디비에 넣고 사용하게 되면 jwt 방식에 대한 효율점이 적어지게 되는데 어떤 점이 좋은 지 궁금하여 남기게 되었습니다. 하드웨어의 ip 값을 디비에 저장해서 사용하는 것이 좋은 건가요? 읽어주셔서 감사합니다.
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
apigateway-service에서 @EnableDiscoveryClient 관련 질문드립니다.
안녕하세요! 먼저 좋은 강의 감사드립니다. 수강 중 궁금한 부분이 생겨 글 작성합니다.user-service 프로젝트에서는 @EnableDiscoveryClient 을 추가해주었는데, apigateway-service와 catalog-service에서는 @EnableDiscoveryClient를 추가해주지 않아서 그 이유가 궁금하여 질문드립니다.@EnableDiscoveryClient 는 eureka server에 등록하기 위한 어노테이션이라고 이해했습니다.user-service 와 마찬가지로 apigateway-service, catalog-service에도 아래 설정은 추가되어서 eureka server에 등록되는 것이라고 생각하였는데 왜 위 어노테이션은 빠진 것인지 궁금했습니다! 그리고 위 어노테이션과 아래 설정의 정확한 의미 차이도 궁금합니다. 감사합니다!!eureka: client: register-with-eureka: true fetch-registry: true
-
미해결뉴욕 프로덕트 디자이너가 알려주는, 입문자를 위한 UX디자인 개론
UI 디자인 원리가 적용된 사례
안녕하세요! UI 디자인 원리중 '유사성의 원리' 와 'CTA의 중요성'을 중점으로 잘 사용되고, 사용되지 않은 사례들에 대해 찾아보았습니다.좋은 사례<직방>먼저 좋은 사례로는 직방 어플을 선택했습니다.[메인 - 카테고리 선택 - 매물 선택] 의 순서로 보았을때메인 - 각 아파트,빌라, 원룸 등 집을 알아보기 위한 사람들에게 한눈에 알아보기 쉽게 그룹화 되어있습니다.카테고리 선택 - 원하는 동네 (또는 지역)을 지도/ 지하철역으로 찾기로 사용자가 더 편한 방법으로 선택할 수 있도록 합니다.매물 선택 - 선택한 매물의 정보들이 나열되며, 원하면 바로 문의도 할 수있는 CTA가 자리합니다.하지만 여기서 조금 아쉬웠던 부분은 CTA의 옆에 매물의 정보가 아닌, 상단에있는 찜버튼(하트)와 공유하기 버튼이 왔으면 더 좋지 않았을까 라는 생각을 했습니다.전체적으로 이 어플을 사용했을 때, 직관적이고 사용자가 한눈에 알아보고 사용할 수 있게끔 유도한다고 느껴졌습니다. 안좋은 사례<스테이폴리오>안좋은 사례로는 스테이폴리오_여행 숙소 예약 어플입니다.메인 - 원하는 여행지의 숙소를 찾으러 들어간 사용자의 입장에서 보았을 때, 사용하기 어렵다는 생각이 들었습니다.여행지와 여행 날짜를 선택할 수 있는 버튼이 상단에 아이콘으로 작게 들어가 있는게 아쉬웠습니다. 한 눈에 보이도록 위치했다면 더 좋지 않았을까 싶습니다.숙소 선택 - 숙소에 대한 컨셉부터 설명까지 너무 많은 글로 나열되어있고, 그 글들 사이에 예약하려는 방이 이미지로 보여져 그래도 눈에 띄었지만, 가격과 [예약하기] 버튼이 더 잘 보이도록 위치했으면 어땠을까? 라는 생각이 들었습니다.
-
해결됨[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
랜덤 숫자가 3개가 안되는 경우가 있습니다.
newNumber에서 3개가 아니면 while문을 계속 될텐데콘솔에 찍인 걸 보면 2개가 있는 경우가 있습니다. 왜 그럴까요?
-
미해결SCSS(SASS)+GRID+FLEX 실전 포트폴리오 퍼블리싱
선생님 질문이 있습니다 !
variables.scss(변수파일)에는 전역변수만 넣어야 하나요??만약에 그렇다면지역변수는 style.scss 에서 선언하면 되나요?저는 scss 파일에서 밑에 코드를 실행시키니까 css 파일에서 "font-size: 30px" 로 연산되어 나와지는데혹시 최근에 scss에서 버전이 업그레이드 된걸까요?font-size: calc(15px * 2);