Spring/Spring Boot

h2콘솔 실행하기

hoonssss 2023. 9. 19. 13:43
반응형
SMALL

1. spring.h2.console.endbled = true

http://localhost:8080/h2-console 입력

2. jdbc:h2:mem:testdb

동적 url 정적으로

3. 테이블 생성

create table course
(
	id bigint not null,
	name varchar(255) not null,
	author varchar(255) not null,
	primary key (id)
);

 

course 테이블 생성

id 기본키, id, name, author -> not null

반응형
LIST

'Spring > Spring Boot' 카테고리의 다른 글

Spring JDBC 데이터 쿼리  (0) 2023.09.19
h2 삽입, 조회, 삭제  (0) 2023.09.19
@ConfigurationProperties  (0) 2023.09.19
@RestController, @RequestMapping("/courses")  (0) 2023.09.19
trace, debug, info, warning, error, off  (0) 2023.09.19