[DEV] 기록

[SpringBoot] HibernateException: No CurrentSessionContext configured!

꾸준함. 2023. 12. 19. 14:56

개요

HibernateItemWriter를 실행하려는데 아래와 같은 에러가 발생했습니다.

 

 No CurrentSessionContext configured!

 

 

해결 방법

아래와 같이 application.properties 혹은 application.yml에 설정을 추가하면 해결됩니다.


 

출처

https://stackoverflow.com/questions/33635453/hibernateexception-no-currentsessioncontext-configured-in-spring-boot

 

HibernateException: No CurrentSessionContext configured! in spring boot

I have the following configuration: @SpringBootApplication public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); ...

stackoverflow.com

 

반응형