質問編集履歴

1

コードのミスしている個所に、コメントを付与

2018/02/07 14:38

投稿

yuji38kwmt
yuji38kwmt

スコア437

test CHANGED
File without changes
test CHANGED
@@ -104,7 +104,7 @@
104
104
 
105
105
  sqlMap.put("studentName",studentName);
106
106
 
107
- sqlSession.insert("insertStudent", studentName);
107
+ sqlSession.insert("insertStudent", studentName); //誤り。正しくは`sqlMap`を渡す
108
108
 
109
109
  return (int) sqlMap.get("studentId"); //NullPointerException
110
110