← Quiz: Spring Boot Basics: all 10 questions
Quiz: Spring Boot Basics · Question 7 of 10
What does spring.jpa.open-in-view=false do?
What does spring.jpa.open-in-view=false do?
- A.Disables JPA completely
- B.Opens a database view
- C.Shows SQL in the browser
- D.Closes the database session when the service layer finishes, avoiding hidden slow queries later
Answer & explanation
Correct answer: Closes the database session when the service layer finishes, avoiding hidden slow queries later
With it off, lazy loading cannot quietly run queries while the view or JSON is being written.
Can you get the rest right without peeking?
Take the timed Quiz: Spring Boot Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →