質問編集履歴
1
コードのミスしている個所に、コメントを付与
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
|
|