root-context.xml에서 만든 sqlSessionTemplate의 id="sqlSession" 은
dao에서 Autowired 해서 필드명으로 사용한다. MemberDao에서의 @Repository("")는
ServiceImpl에서 Autowired로 필드명으로 사용한다. ServiceImpl에서의 @Service("")는
Controller에서 Autowired로 사용한다.
'SPRING' 카테고리의 다른 글
OAUTH란 (0) | 2021.06.17 |
---|---|
No converter found for return value of type 에러 발생 (0) | 2021.06.15 |
mapper.xml 생성하기 (0) | 2021.06.10 |
mybatis-config.xml 파일 (0) | 2021.06.10 |
SPRING 프로젝트 생성기본 세팅 (0) | 2021.06.09 |