Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20220101] Hibernate and data.sql lazy working #241

Open
JuHyun419 opened this issue Jan 1, 2022 · 0 comments
Open

[20220101] Hibernate and data.sql lazy working #241

JuHyun419 opened this issue Jan 1, 2022 · 0 comments
Labels

Comments

@JuHyun419
Copy link
Owner

서버 실행 전 Hibernate에 의해 실행된 테이블 생성후 data.sql 파일 실행하기

  • application.properties(yaml)
    image
spring.jpa.defer-datasource-initialization=true

  • schema.sql - 테이블 스키마
  • data.sql - 테이블에 실행할 쿼리

References

@JuHyun419 JuHyun419 added the JPA label Jan 1, 2022
@JuHyun419 JuHyun419 changed the title [20220101] Hibernate and data.sql [20220101] Hibernate and data.sql lazy working Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant