def self.validate_arguments(baz) raise(ArgumentError, ":baz must be a boolean") unless valid_baz?(baz) end def self.valid_baz?(baz) baz.is_a?(TrueClass) || baz.is_a?(FalseClass) end end
版本2.0.1参数忽略无效,具体看内容 下面可以正常忽略 @ApiOperationSupport(ignoreParameters = {"name"}) public Object create(ModelMap modelMap, Dic dic) { return super.update(modelMap, dic); } 但我前面加@RequestBody就不能忽略掉name了 @ApiOperationSupport(ignoreParameters = {"name"}) public Object...