728x90
8080으로 서버를 띄웠다고 가정
http://localhost:8080/h2-console
로그에
drop table if exists 테이블명 cascade
라고 떴다면
appication.properties 혹은 application.yml을 수정해야함
server:
port: 8081
spring:
jpa:
show-sql: true
properties:
hibernate:
format_sql: true
defer-datasource-initialization: true
ddl-auto: create
datasource:
url: jdbc:h2:mem:testdb
h2:
console:
enabled: true
'Spring' 카테고리의 다른 글
Spring boot) vue + springboot 에서 router 사용하기 (0) | 2024.01.28 |
---|---|
spring boot) vue + spring boot websocket 웹소켓 proxy error (0) | 2024.01.28 |
SpringBoot) 이미지와 텍스트를 함께 보낼 때 (0) | 2024.01.18 |
mybatis) attempted to return null 에러 (0) | 2024.01.08 |
스프링 암호화 (0) | 2022.03.18 |