SqlSession sqlsession=null;为什么写在Try...catch语句外面?
SqlSession sqlsession=null;
try{
sqlSession = dbAccess.getSqlSession();
}catch(){
e.printStackTrace();
}finally{
sqlSession.close();
}SqlSession sqlsession=null;为什么写在Try...catch语句外面?而不是
try{
SqlSession sqlSession = dbAccess.getSqlSession();
}