不确定调用哪个Controller方法来显示带有的视图
documentNumberList,但是您需要将该集合添加到传递给该视图的模型中:
model.addAttribute("documentNumberList", documentService.retrieveAlldocumentNumbers());尽管从异常堆栈跟踪中您也错过了@Autowired on
documentService字段。

不确定调用哪个Controller方法来显示带有的视图
documentNumberList,但是您需要将该集合添加到传递给该视图的模型中:
model.addAttribute("documentNumberList", documentService.retrieveAlldocumentNumbers());尽管从异常堆栈跟踪中您也错过了@Autowired on
documentService字段。