Tuple 에 대한 설명이 편집된 것 같습니다
미해결
따라하며 배우는 노드, 리액트 시리즈 - 레딧 사이트 만들기(NextJS)(Pages Router)
Union 에서 Enum 으로 바로 넘어가는데 Tuple 에 대한 설명이 없는 이유가 있을까요?
- docker
- react
- postgresql
- typescript
- nodejs
- Next.js
- 클론코딩
176만명의 커뮤니티!! 함께 토론해봐요.
미해결
따라하며 배우는 노드, 리액트 시리즈 - 레딧 사이트 만들기(NextJS)(Pages Router)
Union 에서 Enum 으로 바로 넘어가는데 Tuple 에 대한 설명이 없는 이유가 있을까요?
미해결
따라하면서 배우는 고박사의 유니티 기초
Camera Controller에서 카메라를 찾으려고 해도 None 표시만 뜨고 Main Camera는 안나와서 할당이 안되고 오류가 뜨네요 ㅜㅜ
미해결
홍정모의 따라하며 배우는 C언어
윈도우의 커맨드와 맥 터미널의 단축기가 달라 입출력 방향 재지정을 따라할 수 가 없네요ㅜㅜ 혹시 괜찮다면 맥 터미널에서 강의에서와 같이 하려면 어떻게 해야할지 알 수 있을까요???
해결됨
그림으로 쉽게 배우는 자료구조와 알고리즘 (기본편)
안녕하세요 선생님, clear() 함수에서 this.head = null 이랑 this.count = 0으로 하는게 왜 리스트에 있는 기존 정보를 지우게 되는지 이해가 안되는데 추가 설명해주실 수 있을까요?
미해결
스프링 핵심 원리 - 기본편
강의 5:00~ 보시면 맵에 키값에 fixDiscountPolicy가 들어가는데 어떻게 할당되는건지 이해가 되지 않습니다. ㅠㅠ
미해결
[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part1: C++ 프로그래밍 입문
함수 선언 부분에서 void PrintStatInfo(const char* name, const StatInfo& info); 부분에서 빌드를 하면 "확인 할 수 없는 외부참조 입니다"라는 오류가 뜨면서 되지 않습니다. 혹시나 해서 const를 지우고 StatInfo& info만 했을때는 정상적으로 실행이 돼서 const 부분이 문제인거 같은데 어떤 이유로 이런건가요??
미해결
Flutter 중급 1편 - 클린 아키텍처
강사님 화면에서는 안보여서 깔끔해 보이네요. 아 그리고 지식 함양에 많은 도움이 되고 있습니다. 감사드립니다!
미해결
[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
안녕하세요 선생님, 우선 강의 내용과 직접적으로 관련된 질문이 아니라 죄송합니다. 댓글 관련 오류가 몇 가지 발생해 여쭤봅니다. BoardReadActivity.kt 생략 // 댓글 목록 정보 가져옴 fun getCommentListData(key: String) { 생략 // 댓글 헤더에 댓글 개수 출력 binding.commentCountText.text = commentKeyList.count().toString() 생략 } 기존 댓글 2개가 있는 상황에서 새 댓글을 1개 입력하면 댓글 개수가 3이 되어야 하는데요, 2(기존) + 3(기존2업뎃1) = 5(누적)로 출력이 됩니다. 또한 방금 막 작성한 댓글 a의 수정 페이지로 넘어가면 추가된 댓글이 즉시 반영되지 않아 맨 위 댓글인 user1이 불러와지며 댓글 a가 아닌 맨 위 댓글이 수정됩니다. 마찬가지로 a를 삭제하려해도 user-1이 불러와지며 삭제되는 댓글도 a가 아닌 user-1입니다. 수정과 삭제를 반복하면 댓글 카운트는 계속 늘어나고, 이 과정에서 앱이 죽기도 합니다. 게시글을 한 번 나갔다 들어와야 댓글 수가 제대로 카운트 돼서 어떻게 해야 할지 도움 요청드립니다. 코드 전체는 깃허브에 업로드 해 놓았습니다. https://github.com/shinyelee/my-solo-life
미해결
자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비
안녕하세요~ 태원님 강의 7분42초 쯤에 같아도 빼는 이유가 이해가 안됩니다... public int solution(int num, int sumResult, int[] arr) { int answer = 0; int sum = 0; int lt = 0; for(int rt = 0; rt < num; rt++) { sum += arr[rt]; if(sum == sumResult) { answer++; } //같아도 빼야함 while (sum >= num) { sum -= arr[lt++]; if(sum == num) answer++; } } return answer; } while에 해당하는 내용 입니다. 감사합니다.
미해결
따라하며 배우는 리액트 A-Z[19버전 반영]
안녕하세요 강사님!! 항상 궁금했던점인데 css는 외워야하는건가요?
미해결
Vue.js 완벽 가이드 - 실습과 리팩토링으로 배우는 실전 개념
npm run serve 시, Module not found: Error: Can't resolve '@vue/composition-api' in~~ 오류가 뜹니다. 어떻게 해결하면 될 지 알려주실 수 있을까요..
해결됨
스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
그럼 @RequestMapping(”..”)의 컨트롤러는 스프링 MVC중에서 4의 과정에서 호출이 되는 것인가요? RequestMappingHandlerAdapter 클래스에서 handle()이라는 메서드는 없었는데, 제가 잘못 이해한 것인가요?
미해결
자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비
public int getNumber(int num, int sumResult, int[] arr) { int answer = 0; int sum = 0; int pi = 0; int i = 0; while(pi < num) { sum += arr[pi]; if(sum > sumResult) { pi = i++; sum = 0; } else if (sum == sumResult) { answer++; } pi++; } return answer; } 채점은 정답으로 나왔는데,, 혹시 다른 예외상황이 있을까요...?
미해결
스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
FrontController - v1에서 회원목록 조회가 안됩니다
미해결
실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
spring: datasource: url: jdbc:h2:tcp://localhost/~/jpashop username: sa password: driver-class-name: org.h2.Driver jpa: hibernate: ddl-auto: create properties: hibernate: #show_sql: true format_sql: true logging.level: org.hibernate.SQL: debug 제가 application.yml에 작성한 코드입니다. 현재 아래와 같은 에러가 나고 있습니다. could not prepare statement; SQL [call next value for hibernate_sequence]; nested exception is org.hibernate.exception.SQLGrammarException: could not prepare statement org.springframework.dao.InvalidDataAccessResourceUsageException: could not prepare statement; SQL [call next value for hibernate_sequence]; nested exception is org.hibernate.exception.SQLGrammarException: could not prepare statement at app//org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException( HibernateJpaDialect.java:259 ) at app//org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible( HibernateJpaDialect.java:233 ) at app//org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible( AbstractEntityManagerFactoryBean.java:551 ) at app//org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible( ChainedPersistenceExceptionTranslator.java:61 ) at app//org.springframework.dao.support.DataAccessUtils.translateIfNecessary( DataAccessUtils.java:242 ) at app//org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke( PersistenceExceptionTranslationInterceptor.java:152 ) at app//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:186 ) at app//org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed( CglibAopProxy.java:763 ) at app//org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept( CglibAopProxy.java:708 ) at app//jpabook.jpashop.MemberRepository$$EnhancerBySpringCGLIB$$473a0eb7.save(<generated>) at app//jpabook.jpashop.MemberRepositoryTest.testMember( MemberRepositoryTest.java:24 ) at java.base@11.0.15/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base@11.0.15/jdk.internal.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:62 ) at java.base@11.0.15/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43 ) at java.base@11.0.15/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.0.15/java.util.ArrayList.forEach( ArrayList.java:1541 ) 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.0.15/java.util.ArrayList.forEach( ArrayList.java:1541 ) 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:61 ) at java.base@11.0.15/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base@11.0.15/jdk.internal.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:62 ) at java.base@11.0.15/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43 ) at java.base@11.0.15/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:133 ) at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call ( SystemApplicationClassLoaderWorker.java:71 ) 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.hibernate.exception.SQLGrammarException: could not prepare statement at app//org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert( SQLExceptionTypeDelegate.java:63 ) at app//org.hibernate.exception.internal.StandardSQLExceptionConverter.convert( StandardSQLExceptionConverter.java:37 ) at app//org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert( SqlExceptionHelper.java:113 ) at app//org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement( StatementPreparerImpl.java:186 ) at app//org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareStatement( StatementPreparerImpl.java:75 ) at app//org.hibernate.id.enhanced.SequenceStructure$1.getNextValue( SequenceStructure.java:105 ) at app//org.hibernate.id.enhanced.NoopOptimizer.generate( NoopOptimizer.java:40 ) at app//org.hibernate.id.enhanced.SequenceStyleGenerator.generate( SequenceStyleGenerator.java:534 ) at app//org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId( AbstractSaveEventListener.java:115 ) at app//org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient( DefaultPersistEventListener.java:185 ) at app//org.hibernate.event.internal.DefaultPersistEventListener.onPersist( DefaultPersistEventListener.java:128 ) at app//org.hibernate.event.internal.DefaultPersistEventListener.onPersist( DefaultPersistEventListener.java:55 ) at app//org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener( EventListenerGroupImpl.java:107 ) at app//org.hibernate.internal.SessionImpl.firePersist( SessionImpl.java:756 ) at app//org.hibernate.internal.SessionImpl.persist( SessionImpl.java:742 ) at java.base@11.0.15/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base@11.0.15/jdk.internal.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:62 ) at java.base@11.0.15/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43 ) at java.base@11.0.15/java.lang.reflect.Method.invoke( Method.java:566 ) at app//org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke( SharedEntityManagerCreator.java:311 ) at app//com.sun.proxy.$Proxy96.persist(Unknown Source) at app//jpabook.jpashop.MemberRepository.save( MemberRepository.java:16 ) at app//jpabook.jpashop.MemberRepository$$FastClassBySpringCGLIB$$a3e1a60b.invoke(<generated>) at app//org.springframework.cglib.proxy.MethodProxy.invoke( MethodProxy.java:218 ) at app//org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint( CglibAopProxy.java:793 ) at app//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:163 ) at app//org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed( CglibAopProxy.java:763 ) at app//org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke( PersistenceExceptionTranslationInterceptor.java:137 ) ... 90 more Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Sequence "HIBERNATE_SEQUENCE" not found; SQL statement: call next value for hibernate_sequence [90036-200] at org.h2.message.DbException.getJdbcSQLException( DbException.java:576 ) at org.h2.message.DbException.getJdbcSQLException( DbException.java:429 ) at org.h2.message.DbException.get( DbException.java:205 ) at org.h2.message.DbException.get( DbException.java:181 ) at org.h2.command.Parser.readSequence( Parser.java:7678 ) at org.h2.command.Parser.readTermWithIdentifier( Parser.java:4593 ) at org.h2.command.Parser.readTerm( Parser.java:4311 ) at org.h2.command.Parser.readFactor( Parser.java:3343 ) at org.h2.command.Parser.readSum( Parser.java:3330 ) at org.h2.command.Parser.readConcat( Parser.java:3305 ) at org.h2.command.Parser.readCondition( Parser.java:3108 ) at org.h2.command.Parser.readExpression( Parser.java:3059 ) at org.h2.command.Parser.parseCall( Parser.java:6480 ) at org.h2.command.Parser.parsePrepared( Parser.java:905 ) at org.h2.command.Parser.parse( Parser.java:843 ) at org.h2.command.Parser.parse( Parser.java:815 ) at org.h2.command.Parser.prepareCommand( Parser.java:738 ) at org.h2.engine.Session.prepareLocal( Session.java:657 ) at org.h2.server.TcpServerThread.process( TcpServerThread.java:278 ) at org.h2.server.TcpServerThread.run ( TcpServerThread.java:183 ) at java.base/java.lang.Thread.run( Thread.java:829 ) at app//org.h2.message.DbException.getJdbcSQLException( DbException.java:632 ) 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.prepare( CommandRemote.java:78 ) at app//org.h2.command.CommandRemote.<init>( CommandRemote.java:50 ) at app//org.h2.engine.SessionRemote.prepareCommand( SessionRemote.java:480 ) at app//org.h2.jdbc.JdbcConnection.prepareCommand( JdbcConnection.java:1116 ) at app//org.h2.jdbc.JdbcPreparedStatement.<init>( JdbcPreparedStatement.java:92 ) at app//org.h2.jdbc.JdbcConnection.prepareStatement( JdbcConnection.java:288 ) at app//com.zaxxer.hikari.pool.ProxyConnection.prepareStatement( ProxyConnection.java:337 ) at app//com.zaxxer.hikari.pool.HikariProxyConnection.prepareStatement( HikariProxyConnection.java ) at app//org.hibernate.engine.jdbc.internal.StatementPreparerImpl$1.doPrepare( StatementPreparerImpl.java:90 ) at app//org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement( StatementPreparerImpl.java:176 ) ... 114 more MemberRepositoryTest > testMember() FAILED org.springframework.dao.InvalidDataAccessResourceUsageException at MemberRepositoryTest.java:24 Caused by: org.hibernate.exception.SQLGrammarException at MemberRepositoryTest.java:24 Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException at MemberRepositoryTest.java:24 2022-08-31 23:43:24.667 INFO 10712 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 2022-08-31 23:43:24.671 INFO 10712 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2022-08-31 23:43:24.699 INFO 10712 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. 1 test completed, 1 failed > Task :test FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':test'. > There were failing tests. See the report at: file:///C:/Users/XNOTE/Desktop/TIL/Spring/jpashop/build/reports/tests/test/index.html * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 12s 4 actionable tasks: 2 executed, 2 up-to-date
미해결
[하루 10분|C++] 누구나 쉽게 배우는 C++ 프로그래밍 입문
int r = 3이라고 하고 원의 넓이를 구하면 28.2743만 출력이 되어 나오는데, float형은 소숫점 6자리까지 출력이 가능하지 않나요? C언어와 C++에서 출력되는 자료형이 다른건가요??
해결됨
실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
안녕하세요, 상품수정 post controller의 코드를 보다가 궁금한 점이 생겨 질문드립니다. @PostMapping("/items/{itemId}/edit") public String updateItem(@ModelAttribute("form") BookForm form) { itemService.updateItem(form.getId(), form.getName(), form.getPrice(), form.getStockQuantity()); return "redirect:/items"; } 해당 메소드의 parameter인 BookForm 앞에 왜 ModelAttribute 가 붙었는지 궁금합니다. return "redirect:/items"로 url요청을 할 때 Model을 전달하기 위함인가요? 그런데 [GET]/items 메소드는 form에 대한 data를 필요로 하지 않는 것 같습니다. @GetMapping("/items") public String list(Model model) { List<Item> items = itemService.findItems(); model.addAttribute("items", items); return "items/itemList"; }
미해결
[리뉴얼] React로 NodeBird SNS 만들기
import React, { useCallback, useState } from 'react'; import { Form, Input, Button } from 'antd'; import Link from 'next/dist/client/link'; import styled from 'styled-components' import { useDispatch } from 'react-redux'; import { loginAction } from '../reducers'; const LoginForm = () => { const dispatch = useDispatch() const [id, setId] = useState("") const [password, setPassword] = useState("") const onChangeId = useCallback((e) => { setId(e.target.value); }, []); const onChangePw = useCallback((e) => { setPassword(e.target.value); }, []); const onSubmitForm = useCallback(() => { console.log(`id: ${id}, pw: ${password}`); dispatch(loginAction({ id, password })) }, []) return ( <Form onFinish={onSubmitForm}> <div> <label htmlFor="user-id">아이디</label> <br /> <Input type="text" name='user-id' value={id} onChange={onChangeId} /> </div> <div> <label htmlFor="user-id">비밀번호</label> <br /> <Input type="password" name='user-id' value={password} onChange={onChangePw} required /> </div> <ButtonWrapper> <Button type="primary" htmlType="submit" loading={false}>로그인</Button> <Link href="/signup"><Button>회원가입</Button></Link> </ButtonWrapper> </Form> ) } const ButtonWrapper = styled.div` margin-top: 10px; ` export default LoginForm
미해결
[리뉴얼] React로 NodeBird SNS 만들기
//reducers/index.js export const loginAction = (data) => { console.log(data) return { type: 'LOG_IN', data, } } export const logOutAction = () => { return { type: 'LOG_OUT', } } const initialState = { user : { isLoggenIn: false, user: null, signUpData: {}, loginData: {}, }, post: { mainPost: [] } }; // ( 이전상태, 액션 ) => 다음상태 const rootReducer = (state = initialState, action) => { console.log(action.type) switch (action.type) { case 'LOG_IN': return { ...state, user: { ...state.user, isLoggedIn: true, user: action.data } } case 'LOG_OUT': return { ...state, user: { ...state.user, isLoggedIn: false, user: null, } } default: return state } } export default rootReducer //스토어 import { createWrapper } from 'next-redux-wrapper' import { legacy_createStore as createStore } from "redux"; import reducer from '../reducers/index' const configureStore = () => { const store = createStore(reducer); return store; } const wrapper = createWrapper(configureStore, { debug: process.env.NODE_ENV === 'devlopment', }); export default wrapper action에 type으로는 콘솔이 찍히는데 isLoggedin이 안바뀌네요... 어디가 잘못됬을까요 state값이 변경이 안됩니다. ture에서 false로 바뀌어야 하는데 설명 부탁드립니다. import React, { useState } from 'react' import Link from 'next/link' import LoginForm from './LoginForm' import UserProfile from './UserProfile' import { Menu, Input, Row, Col } from 'antd' import styled from 'styled-components' import { useSelector } from 'react-redux' const SearchInput = styled(Input.Search)` vertical-align: middle; `; const AppLayout = ({ children }) => { const { isLoggenIn } = useSelector((state) => state.user) console.log(isLoggenIn) return ( <div> <Menu mode='horizontal'> <Menu.Item> <Link href="/">노드버드</Link> </Menu.Item> <Menu.Item> <Link href="/profile">프로필</Link> </Menu.Item> <Menu.Item> <SearchInput enterButton /> </Menu.Item> <Menu.Item> <Link href="/signup">회원가입</Link> </Menu.Item> </Menu> <Row gutter={8}> <Col xs={24} md={6}> {isLoggenIn ? <UserProfile /> : <LoginForm />} </Col> <Col xs={24} md={12}> {children} </Col> <Col xs={24} md={6}> <a href="http://www.naver.com" target={'_blank'} rel="noreferre noopener">향훈</a> </Col> </Row> </div> ) } export default AppLayout import React, { useCallback, useState } from 'react'; import { Form, Input, Button } from 'antd'; import Link from 'next/dist/client/link'; import styled from 'styled-components' import { useDispatch } from 'react-redux'; import { loginAction } from '../reducers'; const LoginForm = () => { const dispatch = useDispatch() const [id, setId] = useState("") const [password, setPassword] = useState("") const onChangeId = useCallback((e) => { setId(e.target.value); }, []); const onChangePw = useCallback((e) => { setPassword(e.target.value); }, []); const onSubmitForm = useCallback(() => { console.log(`id: ${id}, pw: ${password}`); dispatch(loginAction({ id, password })) }, []) return ( <Form onFinish={onSubmitForm}> <div> <label htmlFor="user-id">아이디</label> <br /> <Input type="text" name='user-id' value={id} onChange={onChangeId} /> </div> <div> <label htmlFor="user-id">비밀번호</label> <br /> <Input type="password" name='user-id' value={password} onChange={onChangePw} required /> </div> <ButtonWrapper> <Button type="primary" htmlType="submit" loading={false}>로그인</Button> <Link href="/signup"><Button>회원가입</Button></Link> </ButtonWrapper> </Form> ) } const ButtonWrapper = styled.div` margin-top: 10px; ` export default LoginForm
미해결
초보를 위한 도커 안내서
윈도우 10 pro 환경에서 Windows PowerShell로 따라해보고 있는 학생입니다. 강의 보면서 공부 중인데 Ctrl+C로 컨테이너 종료시키는 명령어부터 telnet localhost 1234 명령어도 듣질 않습니다ㅠ 강의를 들으려면 맥북이 필요한건가요ㅠ