@Repository2 [오류]Injection of autowired dependencies failed 12345org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.zerock.test.BoardDAOTest': Injection of autowired dependencies failed;nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private persistence.BoardDAO org.zerock.test.BoardDAOTest.dao;nested exception is org.springframework.beans.factory.NoSuchBeanDe.. 2018. 8. 19. [06.스프링+MyBatis]4.DAO 인터페이스 구현 DAO인터페이스와 Mapper의 작성이 완료됐다면 이를 구현하는 구현 클래스를 작성해야한다.MyBatis에서 DAO를 이용하는 경우-> SqlSessionTemplate를 사용 1. SqlSessionTemplate의 설정1) SqlSessionTemplate 클래스2) DB 연결 및 종료 3) mybatis-spring에서 제공4) 트랜잭션 관리5) 안정성: 쓰레드 처리6) SqlSessionFactory를 생성자로 주입하여 설정 root-context.xml의 설정12345678910111213141516171819202122232425 Colored by Color Scriptercs 2. 구현 클래스 작성SqlSessionTemplate를 주입받아 사용1234567891011121314151617.. 2018. 8. 17. 이전 1 다음