1、新建ToDoController.cs继承基础控制器BaseApiController,但是一般业务代码不写在控制器内,业务代码写在Service,先新建统一返回值格式ApiResponse.cs:
public class ApiResponse{public ApiResponse(bool status, string mess…
目录 生成SSH公钥通过 ssh-keygen 程序创建找到SSH公钥 在gitee中添加公钥 生成SSH公钥
通过 ssh-keygen 程序创建
shell> ssh-keygen -t rsa -C "xxxxxx.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rs…
来说一下最近在了解的autoreleasepool吧,我们可能平时书写过许多脑残代码,其有很多的缺陷但是我们可能当时学的比较浅就也不太了解,就像下面这样的:
for (int i 0; i < 1000000; i) {NSNumber *num [NSNumber numberWithInt…