上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 86 下一页
摘要: https://developers.google.cn/protocol-buffers/ google发明的跨语言的数据交换格式, 他支持Java, Python, Objective-C, and C++ proto3开始增加支持Dart, Go, Ruby, and C# 等 1.数字 1- 阅读全文
posted @ 2020-07-25 21:05 富坚老贼 阅读(145) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/cn-star/p/12021067.html 不管是哪种数据库都需要安装 Microsoft.EntityFrameworkCore.Tools -用来可以在命令行使用以下几种指令Add-MigrationDrop-DatabaseGet-DbCon 阅读全文
posted @ 2020-07-25 14:07 富坚老贼 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 获取student的class对象 Class cls = Student.class; 反射变量 1.获取所有public的变量 Field[] fields = cls.getFields(); for (Field field : fields) { System.out.println(fi 阅读全文
posted @ 2020-07-22 20:50 富坚老贼 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Yield Return ascny 异步操作 一、指定类型 二、IActionResult 一下所有的类都继承了IActionResult,所有可以在返回时返回下列类型 ContentResult :返回一串字符串FileContentResult : 返回文件内容FilePathResult : 阅读全文
posted @ 2020-07-21 17:43 富坚老贼 阅读(583) 评论(0) 推荐(0) 编辑
摘要: https://www.newtonsoft.com/json 1.把对象转成json字符串 Student student = new Student(); student.age = 10; student.name = "tom"; student.list = new List<string 阅读全文
posted @ 2020-07-19 23:21 富坚老贼 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 使用类 public class Cal { public int add(int a,int b){ return a+b; } public int sub(int a,int b){ return a-b; } } 测试类 import org.junit.Assert; import org 阅读全文
posted @ 2020-07-17 21:01 富坚老贼 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 数据请求的来源 1.url [FromQuery] 来自于url 2.from表单 [FromForm]来自于表单数据 3.app/json [FromBody] 来自于 json 4.restful风格 Get方法 1.无参数 https://localhost:5001/test/g1 [Api 阅读全文
posted @ 2020-07-16 14:55 富坚老贼 阅读(1465) 评论(0) 推荐(0) 编辑
摘要: https://www.thymeleaf.org/ 引入 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </depend 阅读全文
posted @ 2020-07-13 19:20 富坚老贼 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1.webjars https://www.webjars.org/ 复制到pom.xml <dependency> <groupId>org.webjars</groupId> <artifactId>jquery</artifactId> <version>3.5.1</version> </d 阅读全文
posted @ 2020-07-13 18:47 富坚老贼 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1. <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency 阅读全文
posted @ 2020-07-12 22:41 富坚老贼 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 86 下一页