MyBatis入門學習二:面向接口編程

// 4. 準備基本信息 // 4.1) statement: 用來定位映射文件(PersonMapper.xml)中的語句(通過namespace id + select id) //String statement = "com.xiya.dao.PersonDao.getPersonById"; // 4.2) parameter: 傳進去的參數,也就是需要獲取students表中主鍵值爲1
相關文章
相關標籤/搜索