Java/Spring Boot [Spring Boot - JPA] H2-console로 Database 확인 - (2) by Rezal 2022. 6. 27. h2 enable : src > resources > apllication.properties 에서 spring.h2.console.enabled=true 를 추가해준다. form 으로 입력받고 submit한 뒤 h2 database에서 직접 확인해보자. 서버를 키고 localhost:8080/h2-console 로 request 시 해당 콘솔이 나온다. 이때, 서버를 켰을때 찍히는 log를 보고 jdbc url 에 입력해준다. 이 database는 memory(mem) 로 저장되므로, connect를 끊거나 서버를 끄면 휘발된다. connect하면 ARTICLE이라는 이름으로 Entitty 가 테이블형태로 추가되었음을 알 수 있다. Oracle 이나 mysql 처럼 직접 SQL 문을 작성하여 데이터를 CRUD 할 수 있다. - Source Code https://github.com/Rezalog/springboot_basic 공유하기 게시글 관리 Rezal S/W Engineer Blog 저작자표시 비영리 동일조건 'Java > Spring Boot' 카테고리의 다른 글 [Spring Boot] Refactoring - IntelliJ 에서 Lombok 추가하기 (0) 2022.06.27 [Spring Boot - JPA] form Tag와 DTO, Entity, Repository - (1) (0) 2022.06.27 [Spring Boot] 개발환경 설정 (0) 2022.06.23 관련글 [Spring Boot] Refactoring - IntelliJ 에서 Lombok 추가하기 [Spring Boot - JPA] form Tag와 DTO, Entity, Repository - (1) [Spring Boot] 개발환경 설정