일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Exception
- myBatis
- STS
- SpringBoot
- 설정
- Open Source
- JDBC
- maven
- jpa
- PostgreSQL
- MSSQL
- Source
- oracle
- JavaScript
- Core Java
- ubuntu
- Tomcat
- spring
- 문서
- 오픈소스
- git
- MySQL
- IntelliJ
- Eclipse
- Spring Boot
- AJAX
- error
- Python
- Thymeleaf
- Docker
- Today
- Total
헤르메스 LIFE
[Waring] Explicitly configure spring.jpa.open-in-view to disable this warning 본문
[Waring] Explicitly configure spring.jpa.open-in-view to disable this warning
헤르메스의날개 2023. 2. 26. 00:40개발환경 :
Spring Boot 2.7.9
Database : H2-2.1.214
JDK : 11.0.18 x64
JPA
WARN 23-02-26 00:34:198[restartedMain] org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration.openEntityManagerInViewInterceptor[223]: - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
# Spring Message 처리
spring:
jpa:
open-in-view: false
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
ddl-auto: update
properties:
hibernate:
dialect: org.hibernate.dialect.H2Dialect
format_sql: true
show-sql: true
open-in-view: false 설정 해결
Spring Boot에서는 spring.jpa.open-in-view를 true로 설정하고 있는데, 이는 OSIV 측면에서 매우 부적절하다고 함. 즉 성능이나 scalability,, 즉 확장성 측면에서 볼 때 false로 해야 하는데 true로 하고 있어 warning 경고 사인이 뜨는 거라고.
What is this spring.jpa.open-in-view=true property in Spring Boot?
I saw spring.jpa.open-in-view=true property in Spring Boot documentation for JPA configuration. Is the true default value for this property if it's not provided at all?; What does this really do? ...
stackoverflow.com
출처 : https://mand2.github.io/spring/spring-boot/1/
spring.jpa.open-in-view 로그 오류 해결하기 :: 고라니의 개발일기🦌
spring.jpa.open-in-view 로그 오류 해결하기 2019-09-27 1. 문제상황 : 왜 로그에 warn이 뜨지? 스프링 부트 app을 시작하면 로그가 나오는데, 잘 보면 아래와 같이 warning 메세지가 뜬다 aWebConfiguration$JpaWebMvcCo
mand2.github.io