-
[SPRING] No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call;Spring Boot 2022. 12. 26. 14:52
테스트코드를 짤 때 나타나는 에러로, @Transactional을 넣어주면 해결된다.
'Spring Boot' 카테고리의 다른 글
[SPRING] 테스트코드 어노테이션, 라이브러리, 메서드 모음 (0) 2022.12.28 ☑️[SPRING] 양방향 연관관계일 때 연관관계 편의 메서드를 만들어보장 (0) 2022.12.27 [SPRING] 스프링시큐리티(Spring Security)를 사용해보장 (0) 2022.12.23 [SPRING] FK연결하지 말고 연관 테이블 객체 id만 쏙 빼오기 (0) 2022.12.22 [SPRING] java.lang.ClassNotFoundException: Could not load requested class : org.hibernate.dialect.MySQL5InnoDBDialect (0) 2022.12.19