반응형
SMALL
application.properties 입력
spring.h2.console.enabled = true
spring.datasource.url = jdbc:h2:mem:testdb
spring.h2.console.enabled = true 실행
spring.datasource.url = jdbc:h2:mem:testdb 동적 -> 정적 변경
http://localhost:8080/h2-console
JDBC URL : 정적 URL입력
이후 SQL생성
create table course
(
id bigint not null,
name varchar(255) not null,
author varchar(255) not null,
primary key (id)
);
결과
반응형
LIST
'Spring > Spring Boot' 카테고리의 다른 글
JDBC활용하여 데이터 입력, 삭제, 조회 (0) | 2023.08.27 |
---|---|
H2 테이블 입력 (0) | 2023.08.27 |
spring-boot actuator 사용 (0) | 2023.08.27 |
@ConfigurationProperties(prefix = "~") (0) | 2023.08.27 |
로깅 방법, 종류 (0) | 2023.08.27 |