@ApiModelProperty()用于方法,字段: 表示对model属性的说明或者数据操作更改 value–字段说明 name–重写属性名字 dataType–重写属性类型 required–是否必填 example–举例说明 hidden–隐藏 @ApiModel(value="user对象",description="用户对象user") public class User implements Serializable{ private static fi
NSNotFound 定义一个值,用于指示请求项找不到或不存在.Defines a value that indicates that an item requested couldn’t be found or doesn’t exist. enum { NSNotFound = NSIntegerMax}; NSEnumerationOptions 块枚举操作的选项.Options for Block enumeration operations. enum { NSEnumerationC
一,java端: 定义native方法, 'public native long factorial(int n);', 该方法用c/c++实现,计算'1到20阶乘的和',参数中'int n'是前n项的阶乘的和(这里是20).返回计算结果,并返回java调用处. 代码为: public class FactorialJava { public native long factorial(int n); //evaluate the elapse time.and the execution re