실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

(115개의 수강평)

1289명의 수강생
Back-EndJavaSpring웹앱Spring BootJPASpring Data JPA
월23,466원
88,000원
70,400원
3개월 할부시
(20% 할인, 4일 남음)
지식공유자 · 김영한
35회 수업· 총 7시간 44분수업
평생 무제한 시청
수료증 발급 강의
수강 난이도 중급이상
임정훈 프로필

자꾸 질문을 드리게 되네요.... 임정훈 5시간 전

안녕하세요?? 김영한 님

다름이 아니라 웹 계층 개발에서 상품 등록 시

상품등록 form 페이지에서 기존에 회원 가입 폼에서처럼

<form th:action="/items/news" th:object="${form}" method="post">

라고 하면 오류가 납니다.

<form th:action="@{/items/news}" th:object="${form}" method="post">

action을 바꾸어 주면 정상적으로 실행이 되는데 그 이유는 무엇인가요?

왜 회원등록에서는 @{member/new}로 안 해 주어도 회원등록이 되는데

상품등록에서는 오류가 나는지 정말 궁금합니다.

답변 부탁 드립니다. 감사합니다.

0
치훈이 프로필

식별관계와 비식별관계 질문입니다. 치훈이 15시간 전

안녕하세요!

강의 너무 잘 듣고 있습니다. 평소 고민했던 부분이 많이 해소가 되었습니다 ㅎㅎ

https://woowabros.github.io/experience/2019/01/04/composit-key-jpa.html

위 링크(배민기술블로그)를 보다가 강의 외 질문이지만 문득 궁금증이 들어서 질문 남깁니다.

블로그글의 마치며 바로 윗부분에 보면 "이후 신규 시스템에서는 비식별관계를 사용하고 기본 키는 Long 타입의 대리키를 사용할 것입니다." 라고 하셨는데

이게 모든 경우에 그렇다는 건지 상황을 보고 적용을 한다는 건지 혼란스럽네요..

만약 아래와 같이 테이블이 존재한다고 했을 때

회원과 연락처는 일대다의 관계를 가지고 있고 회원이 존재하지 않으면 연락처는 의미가 없습니다.

이렇게 부모가 존재하지 않으면 자식이 존재할 수 없을 경우 식별관계를 맺어주고 부모의 PK를 자식 테이블에 FK로 걸고 자식 테이블엔 따로 PK가 존재하지 않는다고 알고 있습니다.

이런 경우에도 비식별관계를 맺고 연락처 테이블에도 PK(자동증가값)을 설정을 해야 좋을까요?

경우에 따라 달라져야 된다면 그 기준은 어떻게 둬야 될지 조언 부탁드립니다.

감사합니다 (__)

0
임정훈 프로필

질문이 있어서 문의 드립니다. 임정훈 1일 전

안녕하세요?? 영한님

다름이 라니라 스프링에서는 의존도를 낮추기 위해서 DI를 사용하는데

스프링 부트도 같나요?? 지금 실전 예제를 보니 new 키워드를 이용하여

의존도가 높아지는 거 아닌가 해서요??

정말 궁금하네요..

0
임정훈 프로필

오류가 납니다. 임정훈 1일 전

안녕하세요??

수업 중에 했던 내용 중에서

주문 테스트 하는 부분에서 상품주문 재고수량 초과하는 테스트에서

@Test(expected....) 부분이 있는데

expected 부분이 빨간색으로 오류가 납니다.

어떻게 해야 하나요??  

또한 스프링 부트 버전이 2.3.0.RELEASE 버전인데

MemberForm 객체에서 @NotEmpty 애노테이션이

빨간색이 나옵니다... 어덯게 처리해야 할지요??

2
bpns 프로필

안녕하세요. bpns 3일 전

안녕하세요.  주문서비스기능 테스트 강의를 보며 따라하는데 TEST 부분에서 오류가 발생하여서 원인을 해결하고자 하였는데 도저히 답이 없어 질문 드립니다. 오류 로그는 다음과 같습니다.

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:123)

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.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:227)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)

at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:246)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)

at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)

at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)

at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)

at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)

at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)

at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)

at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)

at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)

at org.junit.runners.ParentRunner.run(ParentRunner.java:413)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)

at org.junit.runner.JUnitCore.run(JUnitCore.java:137)

at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)

at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)

at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)

at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)

at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1108)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)

at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:126)

at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99)

at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)

... 25 more

Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:275)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)

at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:152)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)

at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:176)

at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:118)

at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1202)

at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1233)

at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58)

at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365)

at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:391)

at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:378)

at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792)

... 40 more

Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:100)

at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:54)

at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)

at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)

at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)

... 57 more

왜 안되는지 모르겠습니다ㅠㅠ

제가 사용하고 있는 자바 버전은 13버전입니다.

1
조영준 프로필

소스파일 올려주실 수 있나요? 조영준 3일 전

수업자료 받아보니 pdf 파일 하나 뿐인던데요 

java코드는 직접친다고 해도 html 마크업은 복붙 하고 싶어서요

1
임정훈 프로필

엔티티 클래스 개발 후 테이블이 생성이 안 됩니다. 임정훈 3일 전

안녕하세요? 김영한 강사님

다름이 아니라 

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

에서 엔티티 클래스 개발을 하고 나서

테이블이 만들어지나 확인을 하였는데

테이블이 생성이 안됩니다.

아래에 로그 파일 보내 드립니다.

오류는 없는데 테이블 생성 쿼리문이 안 나타납니다.

================================================================================

"C:\Program Files\Java\jdk1.8.0_201\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.1\lib\idea_rt.jar=65459:C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_201\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\rt.jar;C:\source\workspace(spring_boot)\jpashop\jpashop\out\production\classes;C:\source\workspace(spring_boot)\jpashop\jpashop\out\production\resources;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-data-jpa\2.3.0.RELEASE\6b22be56519c62c5f4a8e09f944b5a9ba75c068c\spring-boot-starter-data-jpa-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-thymeleaf\2.3.0.RELEASE\7b1e44c0e58e2c892d0ddd6b0b57c78011afb2eb\spring-boot-starter-thymeleaf-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-web\2.3.0.RELEASE\459a5d406c56770d9616c5b272bae9fbc777a994\spring-boot-starter-web-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-devtools\2.3.0.RELEASE\e13dced857910467ff468bba0656a3857deda524\spring-boot-devtools-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.github.gavlyukovskiy\p6spy-spring-boot-starter\1.5.6\495579c7fb01b005f19ec4d5188245c66de0937b\p6spy-spring-boot-starter-1.5.6.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-aop\2.3.0.RELEASE\837e8fce81560ec58fc16bf6f889da617104e109\spring-boot-starter-aop-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-jdbc\2.3.0.RELEASE\ddc9ee3da589998143de4cada9d5e3aa1dc39f83\spring-boot-starter-jdbc-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\jakarta.transaction\jakarta.transaction-api\1.3.3\c4179d48720a1e87202115fbed6089bdc4195405\jakarta.transaction-api-1.3.3.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\jakarta.persistence\jakarta.persistence-api\2.2.3\8f6ea5daedc614f07a3654a455660145286f024e\jakarta.persistence-api-2.2.3.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.hibernate\hibernate-core\5.4.15.Final\31cda11d971f6790a2dc78eb7a9c4e587e6b0dfd\hibernate-core-5.4.15.Final.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.data\spring-data-jpa\2.3.0.RELEASE\2d0587603fd28d62be2c2ca4289aa52b49055e50\spring-data-jpa-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-aspects\5.2.6.RELEASE\800d0a949e716e943ff6e3939d9c6e80d9aa4e69\spring-aspects-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter\2.3.0.RELEASE\7b65ef478cf4d21ec70432e11055c2c83371b305\spring-boot-starter-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.thymeleaf\thymeleaf-spring5\3.0.11.RELEASE\de7bf0adf13b5e9c4811f95edf18279da193c0c6\thymeleaf-spring5-3.0.11.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.thymeleaf.extras\thymeleaf-extras-java8time\3.0.4.RELEASE\36e7175ddce36c486fff4578b5af7bb32f54f5df\thymeleaf-extras-java8time-3.0.4.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-json\2.3.0.RELEASE\dfdd3336ee920e4bc75f4ed726c3894c7821c31b\spring-boot-starter-json-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-tomcat\2.3.0.RELEASE\a8038c9ce2beb7bd3c1980ecadd79f65f36d9311\spring-boot-starter-tomcat-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-webmvc\5.2.6.RELEASE\fc54ea95c4c96cd0ab5272319905d4da5d632383\spring-webmvc-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-web\5.2.6.RELEASE\8cc2dbd266eb8f02d2df0895c8e887269e8aed88\spring-web-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.github.gavlyukovskiy\datasource-decorator-spring-boot-autoconfigure\1.5.6\cac386fe9df77870133594f054ee32e5d08ab93d\datasource-decorator-spring-boot-autoconfigure-1.5.6.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\p6spy\p6spy\3.8.2\52299d9a1ec2bc2fb8b1a21cc12dfc1a7c033caf\p6spy-3.8.2.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-aop\5.2.6.RELEASE\84fffb7cad5816763683a3f251f942aa9f667a7e\spring-aop-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.aspectj\aspectjweaver\1.9.5\1740dc9140103b796d1722668805fd4cf852780c\aspectjweaver-1.9.5.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-jdbc\5.2.6.RELEASE\43747a50376e662c2d889ce7b3cd5b9204962ff3\spring-jdbc-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.zaxxer\HikariCP\3.4.5\aa1a2c00aae8e4ba8308e19940711bb9525b103d\HikariCP-3.4.5.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\antlr\antlr\2.7.7\83cd2cd674a217ade95a4bb83a8a14f351f48bd0\antlr-2.7.7.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\net.bytebuddy\byte-buddy\1.10.10\602a3da70f603752d3ce20a9997817d8dec39b51\byte-buddy-1.10.10.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.fasterxml\classmate\1.5.1\3fe0bed568c62df5e89f4f174c101eab25345b6c\classmate-1.5.1.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.glassfish.jaxb\jaxb-runtime\2.3.3\c46b68a6e3a2d84ba4eb14c6a8a1a9a7be4048bc\jaxb-runtime-2.3.3.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.hibernate.common\hibernate-commons-annotations\5.1.0.Final\700aeedc4a2089816621948f0379e17cbd17d5db\hibernate-commons-annotations-5.1.0.Final.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.jboss.logging\jboss-logging\3.4.1.Final\40fd4d696c55793e996d1ff3c475833f836c2498\jboss-logging-3.4.1.Final.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.javassist\javassist\3.24.0-GA\d7466fc2e3af7c023e95c510f06448ad29b225b3\javassist-3.24.0-GA.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.jboss\jandex\2.1.3.Final\cd56603e39eb1421560b71daa584348ecfd9e0b8\jandex-2.1.3.Final.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.dom4j\dom4j\2.1.3\a75914155a9f5808963170ec20653668a2ffd2fd\dom4j-2.1.3.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.data\spring-data-commons\2.3.0.RELEASE\37e7aed849bf6a5b6f8b7ee2907cc55e13c3c791\spring-data-commons-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-context\5.2.6.RELEASE\f8f4420f268b054db12bf0dc7128adc09ab39a7\spring-context-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-orm\5.2.6.RELEASE\8a60f37aa2e9f34bba7e994266733721efd170b7\spring-orm-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-tx\5.2.6.RELEASE\965726c96c42025eedeec047c2afad884203145a\spring-tx-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-beans\5.2.6.RELEASE\d1b4c338e52dac001a48e29a605bb8f73572ad84\spring-beans-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-core\5.2.6.RELEASE\5533695a01f5a1163428932abf6c5ba70e837a2d\spring-core-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.slf4j\slf4j-api\1.7.30\b5a4b6d16ab13e34a88fae84c35cd5d68cac922c\slf4j-api-1.7.30.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-autoconfigure\2.3.0.RELEASE\63e909ec18045377f5bcbedbf29f54691dc54ba0\spring-boot-autoconfigure-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot\2.3.0.RELEASE\52fabd810811f5352ebf6a0a7049550f7d4ec1b9\spring-boot-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-logging\2.3.0.RELEASE\fe2b3809c5763dd7fe02ab174ebe5ee9ed708fbe\spring-boot-starter-logging-2.3.0.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\jakarta.annotation\jakarta.annotation-api\1.3.5\59eb84ee0d616332ff44aba065f3888cf002cd2d\jakarta.annotation-api-1.3.5.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.yaml\snakeyaml\1.26\a78a8747147d2c5807683e76ec2b633e95c14fe9\snakeyaml-1.26.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.thymeleaf\thymeleaf\3.0.11.RELEASE\628ebb91f520053d4120b7b18bf78ff295d57461\thymeleaf-3.0.11.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.datatype\jackson-datatype-jsr310\2.11.0\168b2d0e11478b9f0a1bfccd62d6b5e8547b1e6f\jackson-datatype-jsr310-2.11.0.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.datatype\jackson-datatype-jdk8\2.11.0\cca91d6375258fd7ff2a6abb7bf91eef492bd606\jackson-datatype-jdk8-2.11.0.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.module\jackson-module-parameter-names\2.11.0\950a1e9a7c1093e7ffd92b216d5a0667f1e39058\jackson-module-parameter-names-2.11.0.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.11.0\8f5aaf3878b0647ff3a16610af53b1a5c05d9f15\jackson-databind-2.11.0.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.glassfish\jakarta.el\3.0.3\dab46ee1ee23f7197c13d7c40fce14817c9017df\jakarta.el-3.0.3.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\tomcat-embed-websocket\9.0.35\62ab2d7d7d029ea728ea8f8d3151ba93882b52ca\tomcat-embed-websocket-9.0.35.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\tomcat-embed-core\9.0.35\8a99064fce4b152a7dc9bea1798ba828a2cecf0f\tomcat-embed-core-9.0.35.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-expression\5.2.6.RELEASE\ae0bc9fdf6cf08d885b9aee26c21efa24245d46c\spring-expression-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.glassfish.jaxb\txw2\2.3.3\12f70b0ea4fc1ad45315e842f63f7c9a46f46530\txw2-2.3.3.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\jakarta.xml.bind\jakarta.xml.bind-api\2.3.3\48e3b9cfc10752fba3521d6511f4165bea951801\jakarta.xml.bind-api-2.3.3.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.sun.istack\istack-commons-runtime\3.0.11\4293b5f4e4e89d598f62bb2ba73b32132e7c3a27\istack-commons-runtime-3.0.11.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.springframework\spring-jcl\5.2.6.RELEASE\47b092c5c7a97ad330ae29d84d64e42c63a11b7a\spring-jcl-5.2.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-to-slf4j\2.13.2\7e2845170ed4fdeb87f1fdc9131b743c61645da3\log4j-to-slf4j-2.13.2.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-classic\1.2.3\7c4f3c474fb2c041d8028740440937705ebb473a\logback-classic-1.2.3.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.slf4j\jul-to-slf4j\1.7.30\d58bebff8cbf70ff52b59208586095f467656c30\jul-to-slf4j-1.7.30.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\ognl\ognl\3.1.12\a7fa0db32f882cd3bb41ec6c489853b3bfb6aebc\ognl-3.1.12.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.attoparser\attoparser\2.0.5.RELEASE\a93ad36df9560de3a5312c1d14f69d938099fa64\attoparser-2.0.5.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.unbescape\unbescape\1.1.6.RELEASE\7b90360afb2b860e09e8347112800d12c12b2a13\unbescape-1.1.6.RELEASE.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-annotations\2.11.0\c626020ae55d19c690d25cb51c1532ba76e5890f\jackson-annotations-2.11.0.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.11.0\f84302e14648f9f63c0c73951054aeb2ff0b810a\jackson-core-2.11.0.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.13.2\567ea514dedd8679c429c5b5b39b0d67b6464c3c\log4j-api-2.13.2.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-core\1.2.3\864344400c3d4d92dfeb0a305dc87d953677c03c\logback-core-1.2.3.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.h2database\h2\1.4.200\f7533fe7cb8e99c87a43d325a77b4b678ad9031a\h2-1.4.200.jar;C:\Users\jhehu\.gradle\caches\modules-2\files-2.1\com.sun.activation\jakarta.activation\1.2.2\74548703f9851017ce2f556066659438019e7eb5\jakarta.activation-1.2.2.jar" com.sist.jpashop.JpashopApplication

  .   ____          _            __ _ _

 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \

( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \

 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )

  '  |____| .__|_| |_|_| |_\__, | / / / /

 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::        (v2.3.0.RELEASE)

2020-05-24 20:59:28.767  INFO 210608 --- [  restartedMain] com.sist.jpashop.JpashopApplication      : Starting JpashopApplication on DESKTOP-NV7DUJV with PID 210608 (C:\source\workspace(spring_boot)\jpashop\jpashop\out\production\classes started by jhehu in C:\source\workspace(spring_boot)\jpashop\jpashop)

2020-05-24 20:59:28.771  INFO 210608 --- [  restartedMain] com.sist.jpashop.JpashopApplication      : No active profile set, falling back to default profiles: default

2020-05-24 20:59:28.853  INFO 210608 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable

2020-05-24 20:59:28.853  INFO 210608 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'

2020-05-24 20:59:30.096  INFO 210608 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFERRED mode.

2020-05-24 20:59:30.148  INFO 210608 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 32ms. Found 0 JPA repository interfaces.

2020-05-24 20:59:32.282  INFO 210608 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8585 (http)

2020-05-24 20:59:32.298  INFO 210608 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]

2020-05-24 20:59:32.298  INFO 210608 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.35]

2020-05-24 20:59:32.517  INFO 210608 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext

2020-05-24 20:59:32.517  INFO 210608 --- [  restartedMain] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 3664 ms

2020-05-24 20:59:32.755  INFO 210608 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...

2020-05-24 20:59:32.839  INFO 210608 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.

2020-05-24 20:59:32.850  INFO 210608 --- [  restartedMain] o.s.b.a.h2.H2ConsoleAutoConfiguration    : H2 console available at '/h2-console'. Database available at 'jdbc:h2:tcp://localhost/~/jpashop'

2020-05-24 20:59:33.154  INFO 210608 --- [  restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'

2020-05-24 20:59:33.267  INFO 210608 --- [         task-1] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]

2020-05-24 20:59:33.307  WARN 210608 --- [  restartedMain] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning

2020-05-24 20:59:33.386  INFO 210608 --- [         task-1] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.15.Final

2020-05-24 20:59:33.670  INFO 210608 --- [  restartedMain] o.s.b.a.w.s.WelcomePageHandlerMapping    : Adding welcome page: class path resource [static/index.html]

2020-05-24 20:59:33.777  INFO 210608 --- [         task-1] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}

2020-05-24 20:59:33.839 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration boolean -> org.hibernate.type.BooleanType@24a4a001

2020-05-24 20:59:33.840 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration boolean -> org.hibernate.type.BooleanType@24a4a001

2020-05-24 20:59:33.840 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Boolean -> org.hibernate.type.BooleanType@24a4a001

2020-05-24 20:59:33.841 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration numeric_boolean -> org.hibernate.type.NumericBooleanType@26afa2ed

2020-05-24 20:59:33.842 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration true_false -> org.hibernate.type.TrueFalseType@6b9cbdb7

2020-05-24 20:59:33.843 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration yes_no -> org.hibernate.type.YesNoType@7d324fd4

2020-05-24 20:59:33.845 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration byte -> org.hibernate.type.ByteType@17f73f19

2020-05-24 20:59:33.845 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration byte -> org.hibernate.type.ByteType@17f73f19

2020-05-24 20:59:33.845 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Byte -> org.hibernate.type.ByteType@17f73f19

2020-05-24 20:59:33.847 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration character -> org.hibernate.type.CharacterType@3442fd73

2020-05-24 20:59:33.847 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration char -> org.hibernate.type.CharacterType@3442fd73

2020-05-24 20:59:33.847 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Character -> org.hibernate.type.CharacterType@3442fd73

2020-05-24 20:59:33.849 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration short -> org.hibernate.type.ShortType@3ae31a04

2020-05-24 20:59:33.849 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration short -> org.hibernate.type.ShortType@3ae31a04

2020-05-24 20:59:33.849 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Short -> org.hibernate.type.ShortType@3ae31a04

2020-05-24 20:59:33.851 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration integer -> org.hibernate.type.IntegerType@16d58fb4

2020-05-24 20:59:33.852 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration int -> org.hibernate.type.IntegerType@16d58fb4

2020-05-24 20:59:33.852 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Integer -> org.hibernate.type.IntegerType@16d58fb4

2020-05-24 20:59:33.854 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration long -> org.hibernate.type.LongType@437543d

2020-05-24 20:59:33.854 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration long -> org.hibernate.type.LongType@437543d

2020-05-24 20:59:33.854 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Long -> org.hibernate.type.LongType@437543d

2020-05-24 20:59:33.856 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration float -> org.hibernate.type.FloatType@69466686

2020-05-24 20:59:33.856 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration float -> org.hibernate.type.FloatType@69466686

2020-05-24 20:59:33.856 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Float -> org.hibernate.type.FloatType@69466686

2020-05-24 20:59:33.858 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration double -> org.hibernate.type.DoubleType@63ccd550

2020-05-24 20:59:33.858 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration double -> org.hibernate.type.DoubleType@63ccd550

2020-05-24 20:59:33.858 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Double -> org.hibernate.type.DoubleType@63ccd550

2020-05-24 20:59:33.860 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration big_decimal -> org.hibernate.type.BigDecimalType@3a1f0111

2020-05-24 20:59:33.860 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.math.BigDecimal -> org.hibernate.type.BigDecimalType@3a1f0111

2020-05-24 20:59:33.862 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration big_integer -> org.hibernate.type.BigIntegerType@2cd709fe

2020-05-24 20:59:33.862 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.math.BigInteger -> org.hibernate.type.BigIntegerType@2cd709fe

2020-05-24 20:59:33.864 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration string -> org.hibernate.type.StringType@79bdd068

2020-05-24 20:59:33.864 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.String -> org.hibernate.type.StringType@79bdd068

2020-05-24 20:59:33.866 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration nstring -> org.hibernate.type.StringNVarcharType@35f86cd4

2020-05-24 20:59:33.867 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration ncharacter -> org.hibernate.type.CharacterNCharType@6e5304bc

2020-05-24 20:59:33.868 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration url -> org.hibernate.type.UrlType@151e589b

2020-05-24 20:59:33.869 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.net.URL -> org.hibernate.type.UrlType@151e589b

2020-05-24 20:59:33.871 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration Duration -> org.hibernate.type.DurationType@265b1bd1

2020-05-24 20:59:33.871 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.Duration -> org.hibernate.type.DurationType@265b1bd1

2020-05-24 20:59:33.873 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration Instant -> org.hibernate.type.InstantType@20251324

2020-05-24 20:59:33.873 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.Instant -> org.hibernate.type.InstantType@20251324

2020-05-24 20:59:33.876 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration LocalDateTime -> org.hibernate.type.LocalDateTimeType@138a9d25

2020-05-24 20:59:33.876 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.LocalDateTime -> org.hibernate.type.LocalDateTimeType@138a9d25

2020-05-24 20:59:33.879 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration LocalDate -> org.hibernate.type.LocalDateType@3a7169dd

2020-05-24 20:59:33.879 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.LocalDate -> org.hibernate.type.LocalDateType@3a7169dd

2020-05-24 20:59:33.881 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration LocalTime -> org.hibernate.type.LocalTimeType@7ca90405

2020-05-24 20:59:33.881 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.LocalTime -> org.hibernate.type.LocalTimeType@7ca90405

2020-05-24 20:59:33.883 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration OffsetDateTime -> org.hibernate.type.OffsetDateTimeType@77f62ebc

2020-05-24 20:59:33.883 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.OffsetDateTime -> org.hibernate.type.OffsetDateTimeType@77f62ebc

2020-05-24 20:59:33.885 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration OffsetTime -> org.hibernate.type.OffsetTimeType@509c13ba

2020-05-24 20:59:33.885 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.OffsetTime -> org.hibernate.type.OffsetTimeType@509c13ba

2020-05-24 20:59:33.889 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration ZonedDateTime -> org.hibernate.type.ZonedDateTimeType@2f7d27ad

2020-05-24 20:59:33.889 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.ZonedDateTime -> org.hibernate.type.ZonedDateTimeType@2f7d27ad

2020-05-24 20:59:33.892 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration date -> org.hibernate.type.DateType@78706047

2020-05-24 20:59:33.892 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.Date -> org.hibernate.type.DateType@78706047

2020-05-24 20:59:33.894 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration time -> org.hibernate.type.TimeType@5aabeda9

2020-05-24 20:59:33.895 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.Time -> org.hibernate.type.TimeType@5aabeda9

2020-05-24 20:59:33.897 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration timestamp -> org.hibernate.type.TimestampType@78eced65

2020-05-24 20:59:33.898 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.Timestamp -> org.hibernate.type.TimestampType@78eced65

2020-05-24 20:59:33.898 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.Date -> org.hibernate.type.TimestampType@78eced65

2020-05-24 20:59:33.900 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration dbtimestamp -> org.hibernate.type.DbTimestampType@7e829cd2

2020-05-24 20:59:33.903 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration calendar -> org.hibernate.type.CalendarType@1cd5b1d0

2020-05-24 20:59:33.903 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.Calendar -> org.hibernate.type.CalendarType@1cd5b1d0

2020-05-24 20:59:33.903 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.GregorianCalendar -> org.hibernate.type.CalendarType@1cd5b1d0

2020-05-24 20:59:33.905 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration calendar_date -> org.hibernate.type.CalendarDateType@187ac3f9

2020-05-24 20:59:33.906 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration calendar_time -> org.hibernate.type.CalendarTimeType@4a66a5d0

2020-05-24 20:59:33.908 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration locale -> org.hibernate.type.LocaleType@1e8edc5d

2020-05-24 20:59:33.909 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.Locale -> org.hibernate.type.LocaleType@1e8edc5d

2020-05-24 20:59:33.911 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration currency -> org.hibernate.type.CurrencyType@5434cc45

2020-05-24 20:59:33.911 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.Currency -> org.hibernate.type.CurrencyType@5434cc45

2020-05-24 20:59:33.914 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration timezone -> org.hibernate.type.TimeZoneType@59613733

2020-05-24 20:59:33.914 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.TimeZone -> org.hibernate.type.TimeZoneType@59613733

2020-05-24 20:59:33.917 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration class -> org.hibernate.type.ClassType@7c42ee36

2020-05-24 20:59:33.917 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Class -> org.hibernate.type.ClassType@7c42ee36

2020-05-24 20:59:33.919  INFO 210608 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729

2020-05-24 20:59:33.919 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration uuid-binary -> org.hibernate.type.UUIDBinaryType@6d93de9f

2020-05-24 20:59:33.919 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.UUID -> org.hibernate.type.UUIDBinaryType@6d93de9f

2020-05-24 20:59:33.921 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration uuid-char -> org.hibernate.type.UUIDCharType@35492664

2020-05-24 20:59:33.923 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration binary -> org.hibernate.type.BinaryType@3e46e9a

2020-05-24 20:59:33.923 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration byte[] -> org.hibernate.type.BinaryType@3e46e9a

2020-05-24 20:59:33.923 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration [B -> org.hibernate.type.BinaryType@3e46e9a

2020-05-24 20:59:33.926 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration wrapper-binary -> org.hibernate.type.WrapperBinaryType@7341c067

2020-05-24 20:59:33.926 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration Byte[] -> org.hibernate.type.WrapperBinaryType@7341c067

2020-05-24 20:59:33.926 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration [Ljava.lang.Byte; -> org.hibernate.type.WrapperBinaryType@7341c067

2020-05-24 20:59:33.930 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration row_version -> org.hibernate.type.RowVersionType@4be035b4

2020-05-24 20:59:33.931 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration image -> org.hibernate.type.ImageType@4a9fd3de

2020-05-24 20:59:33.933 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration characters -> org.hibernate.type.CharArrayType@3f21ad91

2020-05-24 20:59:33.933 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration char[] -> org.hibernate.type.CharArrayType@3f21ad91

2020-05-24 20:59:33.933 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration [C -> org.hibernate.type.CharArrayType@3f21ad91

2020-05-24 20:59:33.935 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration wrapper-characters -> org.hibernate.type.CharacterArrayType@1b754825

2020-05-24 20:59:33.935 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration [Ljava.lang.Character; -> org.hibernate.type.CharacterArrayType@1b754825

2020-05-24 20:59:33.935 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration Character[] -> org.hibernate.type.CharacterArrayType@1b754825

2020-05-24 20:59:33.936 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration text -> org.hibernate.type.TextType@3b79ba6a

2020-05-24 20:59:33.937 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration ntext -> org.hibernate.type.NTextType@2e8ff502

2020-05-24 20:59:33.941 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration blob -> org.hibernate.type.BlobType@2732fab7

2020-05-24 20:59:33.942 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.Blob -> org.hibernate.type.BlobType@2732fab7

2020-05-24 20:59:33.943 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration materialized_blob -> org.hibernate.type.MaterializedBlobType@23284212

2020-05-24 20:59:33.947 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration clob -> org.hibernate.type.ClobType@2a79c82

2020-05-24 20:59:33.947 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.Clob -> org.hibernate.type.ClobType@2a79c82

2020-05-24 20:59:33.951 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration nclob -> org.hibernate.type.NClobType@4c2978d8

2020-05-24 20:59:33.951 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.NClob -> org.hibernate.type.NClobType@4c2978d8

2020-05-24 20:59:33.952 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration materialized_clob -> org.hibernate.type.MaterializedClobType@25c96042

2020-05-24 20:59:33.953 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration materialized_nclob -> org.hibernate.type.MaterializedNClobType@570263c4

2020-05-24 20:59:33.955 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration serializable -> org.hibernate.type.SerializableType@73c6f5bc

2020-05-24 20:59:33.961 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration object -> org.hibernate.type.ObjectType@110a9ff4

2020-05-24 20:59:33.962 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Object -> org.hibernate.type.ObjectType@110a9ff4

2020-05-24 20:59:33.964 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_date -> org.hibernate.type.AdaptedImmutableType@ff977bb

2020-05-24 20:59:33.964 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_time -> org.hibernate.type.AdaptedImmutableType@4a49bc8f

2020-05-24 20:59:33.965 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_timestamp -> org.hibernate.type.AdaptedImmutableType@2e6e442b

2020-05-24 20:59:33.965 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_dbtimestamp -> org.hibernate.type.AdaptedImmutableType@716e494d

2020-05-24 20:59:33.965 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_calendar -> org.hibernate.type.AdaptedImmutableType@35eebc74

2020-05-24 20:59:33.965 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_calendar_date -> org.hibernate.type.AdaptedImmutableType@3244d382

2020-05-24 20:59:33.965 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_binary -> org.hibernate.type.AdaptedImmutableType@6ed786fd

2020-05-24 20:59:33.965 DEBUG 210608 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_serializable -> org.hibernate.type.AdaptedImmutableType@6d709e4b

2020-05-24 20:59:33.992  INFO 210608 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8585 (http) with context path ''

2020-05-24 20:59:33.995  INFO 210608 --- [  restartedMain] DeferredRepositoryInitializationListener : Triggering deferred initialization of Spring Data repositories…

2020-05-24 20:59:33.996  INFO 210608 --- [  restartedMain] DeferredRepositoryInitializationListener : Spring Data repositories initialized!

2020-05-24 20:59:34.012  INFO 210608 --- [  restartedMain] com.sist.jpashop.JpashopApplication      : Started JpashopApplication in 5.997 seconds (JVM running for 7.027)

2020-05-24 20:59:34.132  INFO 210608 --- [         task-1] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect

2020-05-24 20:59:34.272 DEBUG 210608 --- [         task-1] o.h.type.spi.TypeConfiguration$Scope     : Scoping TypeConfiguration [org.hibernate.type.spi.TypeConfiguration@bb3eff4] to MetadataBuildingContext [org.hibernate.boot.internal.MetadataBuildingContextRootImpl@1d6d553d]

3
Kioni 프로필

요구사항 분석에서 ERD 질문드립니다 !! Kioni 4일 전

영상본후 저도 요구사항 분석을 조금 더 체계적으로 해보려고 합니다. 혹시 ERD 그리실때 사용한 어플리케이션이나 툴 알려주실수 있으신가요?

2
태종 프로필

중복회원 테코가 이걸로 변경 해도 되나요? 태종 5일 전

위(↑)의 경우에는 테스트 코드가 통과되는데,

아래(↓)처럼 fail() 의 주석을 풀어 주면 

테코(테스트 코드)가 실패 합니다.

아래(↓)의 경우에서도 또 테코가 통과가 안 됩니다.

그래서 밑에 경고창을 자~알 읽어 보고 ,

아래(↓) 처럼 코드를 변경 하니 테코가 통과가 되네요.

그대로 진행 해도 상관 없나요?

1
태종 프로필

혹시 이런 에러가 뜨시는 분들이 계시다면은 태종 5일 전

Failed to load ApplicationContext

java.lang.IllegalStateException: Failed to load ApplicationContext

at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:125)

at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:108)

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:246)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:227)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)

at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:246)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)

at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)

at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)

at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)

at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)

at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)

at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)

at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)

at org.junit.runners.ParentRunner.run(ParentRunner.java:363)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)

at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110)

at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)

at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)

at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)

at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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.processTestClass(Unknown Source)

at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:118)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)

at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)

at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)

at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)

at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:412)

at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)

at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)

at java.lang.Thread.run(Thread.java:748)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1771)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)

at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)

at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:121)

at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99)

at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:117)

... 49 more

Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:275)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)

at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:152)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)

at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:179)

at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:119)

at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1215)

at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1246)

at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58)

at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365)

at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:391)

at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:378)

at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1830)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1767)

... 64 more

Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:100)

at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:54)

at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)

at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)

at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:94)

at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)

... 81 more

강의 내용과 그대로 타이핑 했는데도 불구하고 이런 에러가 떳다면,

H2 데이터베이스를 실행 해 보시고 다시 테스트를 진행 해 보세요

저의 경우 H2 데이터베이스를 실행 하고 테스트를 해보니 에러 없이 성공 했습니다.

1
bpns 프로필

인텔리제이 replace with sum bpns 6일 전

안녕하세요. 강의에서 보여주신 인텔리제이 자동 컨버터 기능중에 replace with sum으로 stream하고 람다문법으로 바꾸시던데 저는 똑같이 alt + enter를 눌러도 제안하는 메뉴에 replace with sum이 안나오는데 따로  인텔리제이에 무슨 설정을 해주어야 하나요?

1
태종 프로필

H2데이터 베이스 에러 뜹니다.. 태종 7일 전

not found, and IFEXISTS=true, so we cant auto-create it [90146-199] 90146/90146

저런 에러 메세지가 떠서, 디렉토리가 없어서 그런건가 해서

디렉토리를 생성했는데도 똑같아요.

뭐가 문제일까요???

7
hjm7091 프로필

한글 깨짐 현상 hjm7091 9일 전

안녕하세요. 강의 정말 잘 듣고 있습니다.

다름이 아니라 intellij에서 한글이 깨지는 현상이 발생하는데 인

터넷에 검색한 방법들로도 해결이 잘 안되서 질문하게 되었습니다. ㅠㅠ

그래서 다른 코드에서도 이런 문제가 발생하는지 확인하려고MemberServiceTest의 회원가입 테스트를 돌려봤습니다.

이번에는 콘솔에서 한글 출력은 이상이 없는데 Test Results부분에 한글이 깨집니다...

그래서 인터넷에 검색해보니 두가지를 설정하는 방법을 찾았습니다.

1) Settings -> File Encodings 에서 UTF-8로 설정

2) idea64.exe.vmoptions 에 -Dfile.encoding=UTF-8 추가

 하지만 여전히  한글이 깨집니다. 혹시 다른 방법을 알고 계신가요?? ㅠㅠ

1
kim Youngho 프로필

cascade와 mappedby의 관계에 대해 여쭤보고 싶습니다. kim Youngho 14일 전

안녕하세요 제 이해가 짧아 어딘가 맥락을 놓친 것 같습니다만 그 부분을 스스로 찾기가 힘들어서 여쭤봅니다.

@OneToMany(mappedBy = "order", cascade = cascadeType.ALL)

private List<OrderItem> orderItems = new ArrayList<>();

예시에 나온 위 소스를 보면 mappedBy가 걸린 곳에 (즉 연관관계의 주인이 아닌 쪽에) cascade가 걸려있습니다. 제가 이해하기론 mappedby는 읽기만 가능한데, cascade를 붙임으로써 arraylist에 들어있던 마치 업데이트도 가능해지는 것 같이 들려서 제가 헷갈리는 부분을 확인차 여쭤보고 싶습니다.

mappedby가 쓰기도 가능해지는 건가요? 아니면 제가 어딘가 내용을 오해했나요?

2
runa0609 프로필

order에 빨간불이 들어 옵니다 ㅠㅠ runa0609 17일 전

//배송정보 생성

Delivery delivery = new Delivery();
delivery.setAddress(member.getAddress());

//주문상품 생성

OrderItem orderItem = OrderItem.createOrderItem(item, item.getPrice(), count);

//주문 생성
Order.createOrder(member, delivery, orderItem);

//주문 저장
orderRepository.save(order);
return order.getId(); }

오더에는 빨간불이 들어오고 생성할땐 (order()) 이런식으로 생성되어야 불이 꺼집니다.

그리고  Delivery는 녹색 네모칸이 켜져 있습니다 ㅠㅠ

어떤 문제일까요?

빨간불 확인 내용

> Task :compileJava FAILED

C:\workspace\demo\src\main\java\com\example\demo\service\OrderService.java:51: error: cannot find symbol

        orderRepository.save(order);

                             ^

  symbol:   variable order

  location: class OrderService

C:\workspace\demo\src\main\java\com\example\demo\service\OrderService.java:52: error: cannot find symbol

        return order.getId();    }

               ^

  symbol:   variable order

  location: class OrderService

2 errors

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':compileJava'.

> Compilation failed; see the compiler error output for details.

* 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 1s

1 actionable task: 1 executed

에러 코드 입니다.

3
지식공유자 되기
많은 사람들에게 배움의 기회를 주고,
경제적 보상을 받아보세요.
지식공유참여
기업 교육을 위한 인프런
“인프런 비즈니스” 를 통해 모든 팀원이 인프런의 강의들을
자유롭게 학습하는 환경을 제공하세요.
인프런 비즈니스