최대 1 분 소요

Java Web Application with Spring and Hibernate (12)

/ JPA /

  • We added Data JPA and H2 dependencies:
    • Spring Boot Auto Configuration does some magic:
      • Initialize JPA and Spring Data JPA frameworks
      • Launch an in memory database(H2)
      • Setup connection from App to in-memory database
      • Launch a few scripts at startup (example: data.sql)
  • Remember - H2 is in memory database
    • Does NOT persist data
    • Great for learning
    • BUT NOT so great for production
    • Let’s see how to use MySQL next!

댓글남기기