BaseDao



import javax.annotation.Resource;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;


import com.ibatis.sqlmap.client.SqlMapClient;


public class BaseDao extends SqlMapClientDaoSupport {
@Autowired
@Resource(name = "sqlMapClient")
public void init(SqlMapClient sqlMapClient) {
setSqlMapClient(sqlMapClient);
}
}

你可能感兴趣的:(Class,import,Autowired)