XML

·Spring Boot 🌿
🌟 공부하게 된 계기 MyBatis 초기 세팅 후 테스트 코드를 작성하는 과정에서 기존 JPA 와 다르게 작성하는 부분이 크게 ① 'MyBatis 는 따로 Entity 의 개념이 없다.' ② 'Repository interface 에서 JpaRepository 를 상속받던 JPA 방식과는 달리 @Mapper 를 이용한 초기화가 이루어진다.' 였는데, 그중에서도 Repository 속 어노테이션 역할이 어떤 건지 궁금해서 좀 더 자세히 정리 해보기로 했다. 🌟 초기 설정 (공통 부분) ① 테스트 작성 @SpringBootTest class AppTest { @Autowired private AriticleService ariticleService; @Test @DisplayName("게시물_리스트_반환")..
Doit_Young
'XML' 태그의 글 목록