opengoofy/crane4j

自动填充方法参数时,`AutoOperate.resolveOperationsFromCurrentElement ` 配置不生效

Closed this issue · 0 comments

示例代码如下:

@ArgAutoOperate({@AutoOperate(value = "arg", type = Map.class, resolveOperationsFromCurrentElement = true)})
public Map<String, Object> test(@Assemble(key = "id", container = "test", prop = "name") Map<String, Object> arg) {
    return r;
}

当自动填充参数 arg 时,设置了 resolveOperationsFromCurrentElement = true,并且直接在参数上通过 @Assemble 注解配置了填充操作,实际执行时不生效。