Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- IntelliJ
- data
- 백준
- 단축키
- insert
- Android
- Java
- 두 동전
- spring
- Algorithm
- 큐빙
- activity
- 제어반전
- ubuntu
- intent
- 프로그래머스
- 16197
- 17837
- github
- 데이터전달
- broadcastreceiver
- 안드로이드
- 데이터
- git
- Jenknis
- goland
- service
- 알고리즘
- vscode
- mysql
Archives
- Today
- Total
해보자
[Spirngboot] h2 Database Connection 본문
dependency 추가 및 설정 파일 내용 추가
build.gradle
dependencies {
compile('com.h2database:h2')
}application.yml
spring:
jpa:
show_sql: true
h2:
console:
enabled: true실행
메모리에서 실행하기 때문에 직접 접근하려면 web console을 사용해야 함
1. Application.java(SpringBootApplication) Run
2. browser 실행 후, 주소창에 localhost://[port-number]/h2-console을 입력

'Spring' 카테고리의 다른 글
| [Maven] jar에 기본 Manifest 속성이 없습니다 (0) | 2021.04.07 |
|---|---|
| [Spring] GWT(Given-When-Then) (0) | 2020.09.09 |
| [Spring] 제어 반전 컨테이너 - IoC (0) | 2020.09.07 |
| [Springboot] 외부 설정 파일 (properties, yml) (0) | 2020.08.19 |
| [SpringBoot] Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)' (0) | 2020.08.13 |