앱)sqlSessionDao관련
case1)
@Repository
public class CustomDaoImpl extends SqlSessionDaoSupport implements CustomDao
@Autowired
public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate){
super.setSqlSessionTemplate(sqlSessionTemplate);
}
getSqlSession().selectList..
getSqlSession().selectOne
(int)getSqlSession().selectOne
case2)
@Repository("name")
public class CustomDaoImpl implements CustomDao
@Autowired
private SqlSessionTemplate sqlSessionTemplate;
sqlSessionTemplate.update
sqlSessionTemplate.selectList
sqlSessionTemplate.selectOne
@Repository
public class CustomDaoImpl extends SqlSessionDaoSupport implements CustomDao
@Autowired
public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate){
super.setSqlSessionTemplate(sqlSessionTemplate);
}
getSqlSession().selectList..
getSqlSession().selectOne
(int)getSqlSession().selectOne
case2)
@Repository("name")
public class CustomDaoImpl implements CustomDao
@Autowired
private SqlSessionTemplate sqlSessionTemplate;
sqlSessionTemplate.update
sqlSessionTemplate.selectList
sqlSessionTemplate.selectOne
'백엔드개발 > 자바스프링' 카테고리의 다른 글
스프링 템플릿 엔진 종류 및 성능 및 비교 (0) | 2019.08.04 |
---|---|
REST API 란 (0) | 2019.08.04 |
앱)paging 관련 (0) | 2018.11.14 |
앱)jstl java jsp excel export (0) | 2018.11.14 |
앱)java spring에서 web page간의 연동처리 (0) | 2018.11.14 |