๐ป๊ฐ๋ฐ/Server
[์ค๋ฅ๋ด์ฉ] ํฌ๋กฌ์์ ํด๋น api ์คํ ์ "Whitelabel Error Page"๋ก ๋จ๊ณ ์ธํ ๋ฆฌ์ ์ด์์๋ ์๋ ์ฝ๋์ ๊ฐ์ ์๋ฌ๊ฐ ๋ฌ๋ค. java.lang.IllegalArgumentException: Name for argument of type [java.lang.Long] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag. [ํด๊ฒฐ๋ฐฉ๋ฒ] @PathVariable์ name="id" ์ถ๊ฐ public Long update(@PathVariable(name="id") Long id){ ... }
http://localhost:8080/h2-console ์์ JDBC URL์ "jdbc:h2:mem:testdb"๋ก ๋ณ๊ฒฝํ๋ คํ๋ ๋ค์๊ณผ ๊ฐ์ ์๋ฌ๊ฐ ๋ฌ๋ค. Database "mem:testdb" not found, either pre-create it or allow remote database creation (not recommended in secure environments) [ํด๊ฒฐ๋ฐฉ๋ฒ] ์ธํ ๋ฆฌ์ ์ด application.properties ํ์ผ์์ ์๋ ์ฝ๋ ์ถ๊ฐ ํ ์ฌ์คํํ๋ค. spring.datasource.url=jdbc:h2:mem:testdb
error: package org.junit does not exist import org.junit.*; java: cannot find symbol symbol: class After location: package org.junit intelliJ + Gradle ํ๊ฒฝ์์ junit import ์๋ฌ ํด๊ฒฐ ๋ฐฉ๋ฒ Settings -> Build, Execution, Deployment -> Build Tools -> Gradle ์์ Build and run using : IntelliJ IDEA Run tests using : IntelliJ IDEA Gradle -> IntelliJ IDEA๋ก ๋ณ๊ฒฝ