Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为不同的动作类设置不同的 idParameterNames。这是可能的还是我必须编写自己的映射器?
不,这是不可能的。struts.mapper.idParameterName由 the 使用,并且RestActionMapper在返回之前解析参数ActionMapping(即,在知道要使用的操作之前)。
struts.mapper.idParameterName
RestActionMapper
ActionMapping