tag 'select', field 'list', name 'department.did': The requested list key 'list' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location] 报这个错 ,说list不能解析为容器?
因为老师漏了一段代码没说,在saveUI方法里面,如下
List<Department> list = departmentService.findAll();
ActionContext.getContext().getValueStack().set("list",list);
记得注入在配置文件里面注入departmentService
为保存了还是报这个错
前面忘了存list了