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 | 31 |
Tags
- git
- insert
- intent
- mysql
- broadcastreceiver
- Jenknis
- activity
- 안드로이드
- Android
- Algorithm
- 데이터
- 데이터전달
- 프로그래머스
- IntelliJ
- spring
- Java
- vscode
- 두 동전
- 단축키
- ubuntu
- goland
- 큐빙
- 백준
- 17837
- data
- 제어반전
- service
- 16197
- github
- 알고리즘
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 |