3.http://localhost:8080/h2-console
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Fri Aug 04 08:28:54 KST 2023
There was an unexpected error (type=Not Found, status=404).
=>확인완료
application.yml 설정
spring:
jpa:
#전송 쿼리 확인
show-sql: true
properties:
hibernate:
format_sql: true
defer-datasource-initialization: true
datasource:
url: jdbc:h2:mem:testdb
h2:
console:
enabled: true
[h2 오류해결] h2 console 접속 안될 때 접속되게 하기
원래는 주소창에 라고 적으면 위와 같은 창이 보여야하는데안들어가진다?그럼 문제가 있는거임어떻게 해결하냐??프로젝트 서비스 폴더의build.gradle에다가이게 있어야함..dependencies 안에....이거
velog.io
implementation 'org.springframework.boot:spring-boot-devtools'
위에거 build.gradle 의 dependencies에 추가해주면됨
=>아니면 h2 설치후 yml에서 url 설정 바꿔서 연결하는 방법도 있음
자바 직렬화, 역질렬화?
HTTP에선 JSON을 자바에서는 객체를 사용
서로 형식이 달라서 형식에 맞게 변환하는 작업이 필요. 이런 작업들을 직렬화, 역직렬화라고 함
'공부 > Spring' 카테고리의 다른 글
스프링 부트 3 백엔드 개발자 되기_9 (0) | 2023.08.09 |
---|---|
스프링 부트 3 백엔드 개발자 되기_8 (0) | 2023.08.08 |
스프링 부트 3 백엔드 개발자 되기_6 (0) | 2023.08.04 |
스프링 부트 3 백엔드 개발자 되기_5 (0) | 2023.08.03 |
스프링 부트 3 백엔드 개발자 되기_4 (0) | 2023.08.02 |