前言 当查询出来的数据量非常大的时候,需要分页查询,django-rest-framework 提供了分页的支持。 有三种分页功能:PageNumberPagination,LimitOffsetPagination,CursorPagination。 分页器 django-rest-framewo ...
分类:
编程语言 时间:
2021-01-19 12:28:20
阅读次数:
0
前言 使用 django-rest-framework 序列化的时候,返回的日期时间格式带T,查看不方便,如update_time=2021-01-18T08:56:47.756971。 需格式化改成我们平常用的日期时间格式 update_time=2021-01-18 08:56:47 问题描述 ...
分类:
编程语言 时间:
2021-01-19 11:45:09
阅读次数:
0
@RestController官方地址 https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/bind/annotation/RestController.html @Targ ...
分类:
编程语言 时间:
2021-01-18 11:09:53
阅读次数:
0
Beego环境搭建和bee工具安装使用,以Windows环境为例。 首先,下载并安装好GO并配置好GOROOT和GOPATH环境变量(如果您是用msi包安装的go,那么这些环境变量已经设置好了)。并在Path环境变量中加入%GOPATH%\bin和%GOROOT%bin。 第二步,下载并安装好git ...
分类:
其他好文 时间:
2021-01-13 11:09:35
阅读次数:
0
一. Vue是什么 Vue (pronounced /vju?/, like view) is a progressive framework for building user interfaces. Vue (读音 /vju?/,类似于 view) 是一套用于构建用户界面的渐进式(优秀的可定制化 ...
分类:
其他好文 时间:
2021-01-13 10:57:24
阅读次数:
0
这里踩了一个大坑,因为spring-boot-starter-web这个jar包中已经有tomcat了,所以有一定的机率 导致创建web项目失败, 所以要做一件事,就是把tomcat排除 <dependency> <groupId>org.springframework.boot</groupId> ...
分类:
编程语言 时间:
2021-01-12 11:06:17
阅读次数:
0
Spring MVC注解配置 关于IDEA的配置 创建好项目以后File → Project Structure → Artifacts 在界面中右击WEB-INF创建一个文件夹lib, 右键文件夹lib → Add Copy of → library Files 然后将所有的包添加进去。 Tomc ...
分类:
编程语言 时间:
2021-01-12 10:56:54
阅读次数:
0
生成ssh公钥认证所需的公钥和私钥文件 [jiaqi.li@localhost ~]$ ssh-keygen -t rsa -b 4096Generating public/private rsa key pair.Enter file in which to save the key (/home ...
分类:
其他好文 时间:
2021-01-11 11:08:35
阅读次数:
0
开发文档: https://developers.weixin.qq.com/miniprogram/dev/framework/ ...
分类:
微信 时间:
2021-01-08 11:43:34
阅读次数:
0
11.如何从CDN加载jQuery? 下面是从所有3个CDN加载jQuery的代码。 从Google CDN加载jQuery Framework的代码 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/j ...
分类:
编程语言 时间:
2021-01-04 11:26:30
阅读次数:
0