πŸ’»κ°œλ°œ/Server

[였λ₯˜ν•΄κ²°] Database "mem:testdb" not found

ye3_ 2024. 1. 16. 21:41

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