강의

멘토링

커뮤니티

Inflearn Community Q&A

me's profile image
me

asked

Spring Boot JWT Tutorial

Security settings, Data settings

h2데이터베이스에 대해 질문 있습니다.

Resolved

Written on

·

475

2

서버를 실행할때 data.sql에 있는 쿼리가 실행되는건 왜 그런건가요??

spring-bootjwt

Answer 1

5

silvernine님의 프로필 이미지
silvernine
Instructor

안녕하세요 케빈님

Spring Boot는 시작될때 root classpath location에 위치한 schema.sql, data.sql 파일의 내용들을 수행하게 되어 있습니다.

참고하시면 좋을만한 링크를 첨부해 드립니다 :)


https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto-initialize-a-database-using-spring-jdbc

me's profile image
me

asked

Ask a question