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

 

JPA 세팅 후에 작업하다보니 다음과 같은 경고성 로그를 마주하게 되었다.

 

없애는 방법은 JPA의 open-in-view 를 명시해주면 된다.

application.properties

 

true 값이 디폴트이며

 

open-in-view 에 대한 이야기 도 있다

 

본인의 경우 false 세팅후에 save 한 시퀀스 값을 가져오지 못하는 이슈가 발생해

true 로 명시하여 경고를 없앴다

'Database > JPA' 카테고리의 다른 글

[JPA] Data too long for column 문자열 길이 이슈  (0) 2024.06.17
JPA 인덱스(INDEX)  (0) 2024.06.05
JPA 유니크(UNIQUE)  (0) 2024.06.05
JPA 연동 에러  (0) 2024.05.27

+ Recent posts