카테고리 없음
@SpringBootTest 와 @DataJpaTest 차이점, Diff between @SpringBootTest and @DataJpaTest
Ginjoe
2021. 8. 4. 23:15
@DataJpaTest는 @Component 를 스캔하지않는다.
- @Component 를 사용한 Bean Class를 사용하려면 @SpringBootTest를 사용해야 한다.
@DataJpaTest는 @Component 붙은 Bean Class 를 ApplicationContext 로 로드하지 않아서 로딩이 빠른 장점이 있다.
2021.06.10 - [Programming] - Cascade Lazy 지연로딩 시 Proxy 프록시 객체의 null 값 문제 Exception
Cascade Lazy 지연로딩 시 Proxy 프록시 객체의 null 값 문제 Exception
test: 지연로딩 시 프록시객체의 null값 문제 - 지연로딩으로 연관관계가 있는 하위 객체가 프록시객체로 만들어진 경우, 해당 객체의 값은 가져올 수 있다. 하지만 프록시객체 자
itdar.tistory.com