原因有多种,这里说明一种:就是在jsp界面的错误
<c:forEach items="${chapters }" var="chapter">
<option value="${chapter.id}" <c:if test="${chapterSectionKnowledge.chapterId eq chapters.id }">selected</c:if> >${chapter.name}</option>
</c:forEach>
这里的chapterSectionKnowledge.chapterId eq chapters.id的chapter.id写成了chpaters.id所以报错了。