1. 마이바티스 2에서의 사용법과 3에서의 사용법 4가지를 정리하시오.
@Autowired private SqlSessionTemplate sqlSession; public VO selectVO() throws Exception { return sqlSession.getMapper(VO.class); }
@Autowired private SqlSessionTemplate sqlSession; public List<VO> selectList() throws Exception { return sqlSession.selectList(mapperName.selectList); }
@Mapper public interface SomethingMapper { @Select("select * from something") List<VO> getList(); }
@Mapper public interface SomethingMapper { List<VO> getList(); }