본문 바로가기

H2

H2 웹콘솔 띄우기

H2 웹콘솔 띄우기

 

src > main > resources > application.properties 파일을 연다.

 

H2 웹콘솔 설정 을 복붙한다.

spring.h2.console.enabled=true
spring.datasource.url=jdbc:h2:mem:testdb

 

~Application.java 파일을 Run!

 

http://localhost:8080/h2-console 로 접속하시면 아래와 같은 화면이 뜨면 Connect 버튼을 클릭

다음과 같은 화면이 뜨면 웹콘솔 띄우기 성공쓰~!

'H2' 카테고리의 다른 글

JPA CRUD  (0) 2020.11.15
JPA로 생성일자, 수정일자 필드 만들기  (0) 2020.11.15
JPA 사용해보기  (0) 2020.11.15
JPA 시작하기  (0) 2020.11.15