인프런 커뮤니티 질문&답변

hwanghsp님의 프로필 이미지
hwanghsp

작성한 질문수

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

클래스 매핑 후 실행을 하려고 했는데 오류가 납니다. / H2 실행방법 질문입니다.

작성

·

530

1

우선 제 카테고리입니다.

이 상태에서 실행을 했습니다.

오류 내용입니다.

"C:\Program Files\Java\jdk-11.0.9\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3\lib\idea_rt.jar=62925:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3\lib\idea_rt.jar;C:\Users\유정이\.m2\repository\org\junit\platform\junit-platform-launcher\1.6.3\junit-platform-launcher-1.6.3.jar;C:\Users\유정이\.m2\repository\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;C:\Users\유정이\.m2\repository\org\junit\platform\junit-platform-engine\1.6.3\junit-platform-engine-1.6.3.jar;C:\Users\유정이\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\유정이\.m2\repository\org\junit\platform\junit-platform-commons\1.6.3\junit-platform-commons-1.6.3.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3\plugins\junit\lib\junit5-rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3\plugins\junit\lib\junit-rt.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.junit.jupiter\junit-jupiter-engine\5.6.3\234f250d1608684c4436d72214e7530f23cb8a03\junit-jupiter-engine-5.6.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.h2database\h2\1.4.200\f7533fe7cb8e99c87a43d325a77b4b678ad9031a\h2-1.4.200.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.sun.activation\jakarta.activation\1.2.2\74548703f9851017ce2f556066659438019e7eb5\jakarta.activation-1.2.2.jar;C:\Users\유정이\Desktop\SpringBoot\활용1\jpashop\out\test\classes;C:\Users\유정이\Desktop\SpringBoot\활용1\jpashop\out\production\classes;C:\Users\유정이\Desktop\SpringBoot\활용1\jpashop\out\production\resources;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-data-jpa\2.3.9.RELEASE\161c4c824430743b43b473dcd606029624409747\spring-boot-starter-data-jpa-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-thymeleaf\2.3.9.RELEASE\18f0efee1cf0d89718285e693c5708f76c4ca3c2\spring-boot-starter-thymeleaf-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-validation\2.3.9.RELEASE\1e537570657c317c411e34786240350ef2693d42\spring-boot-starter-validation-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-web\2.3.9.RELEASE\4c832c4921045132ea9a246e31a1ecd72d5e3b96\spring-boot-starter-web-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-devtools\2.3.9.RELEASE\fafa0b70b7ddbbbf69db3458486ef65aea14ca89\spring-boot-devtools-2.3.9.RELEASE.jar;C:\Users\유정이\.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\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-test\2.3.9.RELEASE\d93b597c41f32f85763ae1687eb79c2a2c40445c\spring-boot-starter-test-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.junit.vintage\junit-vintage-engine\5.6.3\b5899eb399c36350d575ea2cbf2265bbcbfa592b\junit-vintage-engine-5.6.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-aop\2.3.9.RELEASE\be36059a168b53022042774405259dfb91dfff06\spring-boot-starter-aop-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-jdbc\2.3.9.RELEASE\a03add13d5b4c42e123809679932f4d0b4be3ac0\spring-boot-starter-jdbc-2.3.9.RELEASE.jar;C:\Users\유정이\.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\유정이\.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\유정이\.gradle\caches\modules-2\files-2.1\org.hibernate\hibernate-core\5.4.28.Final\c096dbb27f83655ec252165340b532733c58e8fb\hibernate-core-5.4.28.Final.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.data\spring-data-jpa\2.3.7.RELEASE\ced4d3d1609e5db151772c9b9a6c173bf902e6f2\spring-data-jpa-2.3.7.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-aspects\5.2.13.RELEASE\54c64acd41821a0eceb22c14246a08caa985d916\spring-aspects-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter\2.3.9.RELEASE\f23c5a7f12fa9958aafe3d13704287b58e62b513\spring-boot-starter-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.thymeleaf\thymeleaf-spring5\3.0.12.RELEASE\aa640b214411978a23cbe271c3fb9569d1bda608\thymeleaf-spring5-3.0.12.RELEASE.jar;C:\Users\유정이\.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\유정이\.gradle\caches\modules-2\files-2.1\org.glassfish\jakarta.el\3.0.3\dab46ee1ee23f7197c13d7c40fce14817c9017df\jakarta.el-3.0.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.hibernate.validator\hibernate-validator\6.1.7.Final\8d10290c5b23b7d061c79ad804dca107b335cb36\hibernate-validator-6.1.7.Final.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-json\2.3.9.RELEASE\875d795b6235779dc7c83ee091666edaa9778160\spring-boot-starter-json-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-tomcat\2.3.9.RELEASE\2463b3c9b4a3db5aa1558d22fec2ac3ec617f3df\spring-boot-starter-tomcat-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-webmvc\5.2.13.RELEASE\fcee2e100d39edf3abc6cb31b5bb8cbb231afdba\spring-webmvc-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-web\5.2.13.RELEASE\346f1e07b6177cf917459d91def0dbd1a3fba172\spring-web-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-autoconfigure\2.3.9.RELEASE\bbea8a1a7196c5194c310ed07d2d1b674aeca5f6\spring-boot-autoconfigure-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot\2.3.9.RELEASE\a5fc1d7406d3cc4cdcca7c449dc43dbd4ff9a9ff\spring-boot-2.3.9.RELEASE.jar;C:\Users\유정이\.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\유정이\.gradle\caches\modules-2\files-2.1\p6spy\p6spy\3.8.2\52299d9a1ec2bc2fb8b1a21cc12dfc1a7c033caf\p6spy-3.8.2.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.junit.jupiter\junit-jupiter\5.6.3\e02aa6453c90c8fb12a88212df94d477dc97ad9b\junit-jupiter-5.6.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-test-autoconfigure\2.3.9.RELEASE\ad84ed75cdd22667c32eef26ee0424fbf96e5cfb\spring-boot-test-autoconfigure-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-test\2.3.9.RELEASE\f0f09516b1c1c2ccf8768635eabea7303cfa3fe6\spring-boot-test-2.3.9.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.jayway.jsonpath\json-path\2.4.0\765a4401ceb2dc8d40553c2075eb80a8fa35c2ae\json-path-2.4.0.jar;C:\Users\유정이\.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\유정이\.gradle\caches\modules-2\files-2.1\org.assertj\assertj-core\3.16.1\6e772120aff69ca3d1583b3d1b36b7529de43ba1\assertj-core-3.16.1.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.hamcrest\hamcrest\2.2\1820c0968dba3a11a1b30669bb1f01978a91dedc\hamcrest-2.2.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.mockito\mockito-junit-jupiter\3.3.3\1176ce43cf773e11a5a318ff04e57e55f9187347\mockito-junit-jupiter-3.3.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.mockito\mockito-core\3.3.3\4878395d4e63173f3825e17e5e0690e8054445f1\mockito-core-3.3.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.skyscreamer\jsonassert\1.5.0\6c9d5fe2f59da598d9aefc1cfc6528ff3cf32df3\jsonassert-1.5.0.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-test\5.2.13.RELEASE\807c081a4a5308d794175bad794c8af5c4b317de\spring-test-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-core\5.2.13.RELEASE\13c07193d28c9c13de50389b5b179d17ada8d314\spring-core-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.xmlunit\xmlunit-core\2.7.0\4d014eac96329c70175116b185749765cee0aad5\xmlunit-core-2.7.0.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.junit.platform\junit-platform-engine\1.6.3\a926b9bbc7fe67c5795ee1f00cc1b618b313e5ce\junit-platform-engine-1.6.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.apiguardian\apiguardian-api\1.1.0\fc9dff4bb36d627bdc553de77e1f17efd790876c\apiguardian-api-1.1.0.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\junit\junit\4.13.2\8ac9e16d933b6fb43bc7f576336b8f4d7eb5ba12\junit-4.13.2.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-aop\5.2.13.RELEASE\151d163df77378a6e0eec132b29e9fe492e30f3f\spring-aop-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.aspectj\aspectjweaver\1.9.6\ee3b73aa16df35179255f17354d9dfd8e7822835\aspectjweaver-1.9.6.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-jdbc\5.2.13.RELEASE\cd2fe9ed82e84097bb317b9f05f6b3cf1b41678b\spring-jdbc-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.zaxxer\HikariCP\3.4.5\aa1a2c00aae8e4ba8308e19940711bb9525b103d\HikariCP-3.4.5.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.glassfish.jaxb\jaxb-runtime\2.3.3\c46b68a6e3a2d84ba4eb14c6a8a1a9a7be4048bc\jaxb-runtime-2.3.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.hibernate.common\hibernate-commons-annotations\5.1.2.Final\e59ffdbc6ad09eeb33507b39ffcf287679a498c8\hibernate-commons-annotations-5.1.2.Final.jar;C:\Users\유정이\.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\유정이\.gradle\caches\modules-2\files-2.1\org.javassist\javassist\3.27.0-GA\f63e6aa899e15eca8fdaa402a79af4c417252213\javassist-3.27.0-GA.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\net.bytebuddy\byte-buddy\1.10.20\c5d2d12c75c5d52f8df33f4211e6dbd05a42b117\byte-buddy-1.10.20.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\antlr\antlr\2.7.7\83cd2cd674a217ade95a4bb83a8a14f351f48bd0\antlr-2.7.7.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.jboss\jandex\2.2.3.Final\d3865101f0666b63586683bd811d754517f331ab\jandex-2.2.3.Final.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.fasterxml\classmate\1.5.1\3fe0bed568c62df5e89f4f174c101eab25345b6c\classmate-1.5.1.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.dom4j\dom4j\2.1.3\a75914155a9f5808963170ec20653668a2ffd2fd\dom4j-2.1.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-context\5.2.13.RELEASE\39d5cbdfd2bd8d8f3feebb6c34b7ca5abfa40eee\spring-context-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-orm\5.2.13.RELEASE\f33c4794a22e27e2bb7dbe72abea083f45e92272\spring-orm-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.data\spring-data-commons\2.3.7.RELEASE\ec6303838d17e86a93d687278a866fd0b52fd958\spring-data-commons-2.3.7.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-tx\5.2.13.RELEASE\f153e020f0faca5dea332ed00f65055d93189811\spring-tx-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-beans\5.2.13.RELEASE\b20c22c16270e758441bb7f3ce6707c9034083bb\spring-beans-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.slf4j\slf4j-api\1.7.30\b5a4b6d16ab13e34a88fae84c35cd5d68cac922c\slf4j-api-1.7.30.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-logging\2.3.9.RELEASE\4d60eb273ea3af81db21cb29457b6f170b88a5ce\spring-boot-starter-logging-2.3.9.RELEASE.jar;C:\Users\유정이\.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\유정이\.gradle\caches\modules-2\files-2.1\org.yaml\snakeyaml\1.26\a78a8747147d2c5807683e76ec2b633e95c14fe9\snakeyaml-1.26.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.thymeleaf\thymeleaf\3.0.12.RELEASE\de1865b0d58590a50c33900115a293335dd8ef25\thymeleaf-3.0.12.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\jakarta.validation\jakarta.validation-api\2.0.2\5eacc6522521f7eacb081f95cee1e231648461e7\jakarta.validation-api-2.0.2.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.datatype\jackson-datatype-jdk8\2.11.4\e1540dea3c6c681ea4e335a960f730861ee3bedb\jackson-datatype-jdk8-2.11.4.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.datatype\jackson-datatype-jsr310\2.11.4\ce6fc76bba06623720e5a9308386b6ae74753f4d\jackson-datatype-jsr310-2.11.4.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.module\jackson-module-parameter-names\2.11.4\432e050d79f2282a66c320375d628f1b0842cb12\jackson-module-parameter-names-2.11.4.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.11.4\5d9f3d441f99d721b957e3497f0a6465c764fad4\jackson-databind-2.11.4.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\tomcat-embed-websocket\9.0.43\78232648dde1a5fd5093f0a3999e593d208e2eab\tomcat-embed-websocket-9.0.43.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\tomcat-embed-core\9.0.43\1d102277426bdd5b12f048731a91665bb69347d1\tomcat-embed-core-9.0.43.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-expression\5.2.13.RELEASE\1a59010115eace4f66a245ea299760c5401c43f7\spring-expression-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.junit.jupiter\junit-jupiter-params\5.6.3\fb4a394249d18d56d6f527b7c547cb400037a016\junit-jupiter-params-5.6.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.junit.jupiter\junit-jupiter-api\5.6.3\73ea5e2b7f112616315d3e2325a98e6e93c2813a\junit-jupiter-api-5.6.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\net.minidev\json-smart\2.3\7396407491352ce4fa30de92efb158adb76b5b\json-smart-2.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\jakarta.activation\jakarta.activation-api\1.2.2\99f53adba383cb1bf7c3862844488574b559621f\jakarta.activation-api-1.2.2.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\net.bytebuddy\byte-buddy-agent\1.10.20\8391bfea9da53fd92edd4a453571ef70b3aae09f\byte-buddy-agent-1.10.20.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.objenesis\objenesis\2.6\639033469776fd37c08358c6b92a4761feb2af4b\objenesis-2.6.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.vaadin.external.google\android-json\0.0.20131108.vaadin1\fa26d351fe62a6a17f5cda1287c1c6110dec413f\android-json-0.0.20131108.vaadin1.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.springframework\spring-jcl\5.2.13.RELEASE\ee19a844ebbc0b63d89144eb8ae74a91d45a095c\spring-jcl-5.2.13.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.junit.platform\junit-platform-commons\1.6.3\7ce526bbb9e6202e8a30140a50bfff644fddd10e\junit-platform-commons-1.6.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.opentest4j\opentest4j\1.2.0\28c11eb91f9b6d8e200631d46e20a7f407f2a046\opentest4j-1.2.0.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.glassfish.jaxb\txw2\2.3.3\12f70b0ea4fc1ad45315e842f63f7c9a46f46530\txw2-2.3.3.jar;C:\Users\유정이\.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\유정이\.gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-classic\1.2.3\7c4f3c474fb2c041d8028740440937705ebb473a\logback-classic-1.2.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-to-slf4j\2.13.3\966f6fd1af4959d6b12bfa880121d4a2b164f857\log4j-to-slf4j-2.13.3.jar;C:\Users\유정이\.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\유정이\.gradle\caches\modules-2\files-2.1\org.attoparser\attoparser\2.0.5.RELEASE\a93ad36df9560de3a5312c1d14f69d938099fa64\attoparser-2.0.5.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.unbescape\unbescape\1.1.6.RELEASE\7b90360afb2b860e09e8347112800d12c12b2a13\unbescape-1.1.6.RELEASE.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.11.4\593f7b18bab07a76767f181e2a2336135ce82cc4\jackson-core-2.11.4.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-annotations\2.11.4\2c3f5c079330f3a01726686a078979420f547ae4\jackson-annotations-2.11.4.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\net.minidev\accessors-smart\1.2\c592b500269bfde36096641b01238a8350f8aa31\accessors-smart-1.2.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-core\1.2.3\864344400c3d4d92dfeb0a305dc87d953677c03c\logback-core-1.2.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.13.3\ec1508160b93d274b1add34419b897bae84c6ca9\log4j-api-2.13.3.jar;C:\Users\유정이\.gradle\caches\modules-2\files-2.1\org.ow2.asm\asm\5.0.4\da08b8cce7bbf903602a25a3a163ae252435795\asm-5.0.4.jar" com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit5 jpabook.jpashop.MemberRepositoryTest,testMember

Internal Error occurred.

org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests

at org.junit.platform.launcher.core.DefaultLauncher.discoverEngineRoot(DefaultLauncher.java:189)

at org.junit.platform.launcher.core.DefaultLauncher.discoverRoot(DefaultLauncher.java:168)

at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)

at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71)

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

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

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

Caused by: org.junit.platform.commons.JUnitException: MethodSelector [className = 'jpabook.jpashop.MemberRepositoryTest', methodName = 'testMember', methodParameterTypes = ''] resolution failed

at org.junit.platform.launcher.listeners.discovery.AbortOnFailureLauncherDiscoveryListener.selectorProcessed(AbortOnFailureLauncherDiscoveryListener.java:39)

at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolveCompletely(EngineDiscoveryRequestResolution.java:102)

at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.run(EngineDiscoveryRequestResolution.java:82)

at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.resolve(EngineDiscoveryRequestResolver.java:113)

at org.junit.jupiter.engine.discovery.DiscoverySelectorResolver.resolveSelectors(DiscoverySelectorResolver.java:45)

at org.junit.jupiter.engine.JupiterTestEngine.discover(JupiterTestEngine.java:69)

at org.junit.platform.launcher.core.DefaultLauncher.discoverEngineRoot(DefaultLauncher.java:181)

... 6 more

Caused by: org.junit.platform.commons.PreconditionViolationException: Could not load class with name: jpabook.jpashop.MemberRepositoryTest

at org.junit.platform.engine.discovery.MethodSelector.lambda$lazyLoadJavaClass$0(MethodSelector.java:157)

at org.junit.platform.commons.function.Try$Failure.getOrThrow(Try.java:335)

at org.junit.platform.engine.discovery.MethodSelector.lazyLoadJavaClass(MethodSelector.java:156)

at org.junit.platform.engine.discovery.MethodSelector.getJavaClass(MethodSelector.java:135)

at org.junit.jupiter.engine.discovery.MethodSelectorResolver.resolve(MethodSelectorResolver.java:69)

at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.lambda$resolve$2(EngineDiscoveryRequestResolution.java:146)

at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)

at java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1632)

at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)

at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)

at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)

at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)

at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)

at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543)

at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolve(EngineDiscoveryRequestResolution.java:185)

at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolve(EngineDiscoveryRequestResolution.java:125)

at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolveCompletely(EngineDiscoveryRequestResolution.java:91)

... 11 more

Caused by: java.lang.ClassNotFoundException: jpabook.jpashop.MemberRepositoryTest

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)

at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

at org.junit.platform.commons.util.ReflectionUtils.lambda$tryToLoadClass$9(ReflectionUtils.java:790)

at org.junit.platform.commons.function.Try.lambda$call$0(Try.java:57)

at org.junit.platform.commons.function.Try.of(Try.java:93)

at org.junit.platform.commons.function.Try.call(Try.java:57)

at org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass(ReflectionUtils.java:753)

at org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass(ReflectionUtils.java:709)

... 27 more

Process finished with exit code -2

-->

MemberRepositoryTest가 없어서 오류가 나는걸까요? 

엔티티 매핑전에 테스트 한 것들을 지운 기억이 있습니다.

그리고 h2 데이터 베이스 실행하는 방법 질문입니다. - 이렇게 실행해도 되는건가요?

맨 아래에 있는 노란 박스를 더블클릭해서 들어가는데 괜찮은건지 걱정이되어서 질문드립니다.(윈도우 사용자입니다.)

답변 2

0

hwanghsp님의 프로필 이미지
hwanghsp
질문자

와 해결했습니다... 기쁘면서도 허무하고 ... 김영한 강사님 감사합니다.

JapshopApplication에 있는 main() 메서드 왼쪽에 있는 녹색 오른쪽으로 되어있는 화살표 버튼으로 실행, h2 데이터베이스 서버를 켰더니 뜹니다 ㅎㅎㅎㅎ...

그런데 실행할때 실행버튼 위치에 따라서 결과가 달라지나요? (전체화면에있는 녹색버튼, main() 옆에 있는 녹색버튼 등)

0

hwanghsp님의 프로필 이미지
hwanghsp
질문자

찾아보니 윈도우 사용자의 경우 h2.bat 실행하면 브라우저에서 창이 열리면서 실행된다는 것을 알게되었습니다.

그럼 위 방법과 제가 질문한 방법 둘 다 가능한건지 궁금합니다~!

김영한님의 프로필 이미지
김영한
지식공유자

안녕하세요. hwanghsp님

실행을 하실 때 JapshopApplication에 있는 main() 메서드 왼쪽에 있는 녹색 오른쪽으로 되어있는 화살표 버튼으로 실행해주세요.

h2는 두 가지다 가능할 것 같아요. 혹시 문제가 되면 따로 남겨주세요.

감사합니다.

hwanghsp님의 프로필 이미지
hwanghsp

작성한 질문수

질문하기