上一页 1 2 3 4 5 6 ··· 16 下一页
摘要: 一、swagger介绍 swagger 之前: 我们需要针对每一个接口去编写 接口文档,而且随着接口的修改接口文档也可能需要相应的修改。接口文档中 包含:接口功能、请求参数、返回数据、及其中每条数据的意义。 swagger之后: 我们不需要在编写独立的接口文档、只需要在相应 请求对象、返回对象、接口 阅读全文
posted @ 2020-11-11 11:28 黑质白章 阅读(191) 评论(0) 推荐(0) 编辑
摘要: MongoTemplate官方文档: https://docs.spring.io/spring-data/mongodb/docs/current/reference/html/#mongo.aggregation.supported-aggregation-operations 一、增删改查 原 阅读全文
posted @ 2020-11-11 11:27 黑质白章 阅读(1925) 评论(1) 推荐(0) 编辑
摘要: 1、导入jar包依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </dependency> <dependenc 阅读全文
posted @ 2020-11-11 11:26 黑质白章 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-09-25 14:20:53.200 ERROR 7184 [ 阅读全文
posted @ 2020-11-11 11:24 黑质白章 阅读(2106) 评论(0) 推荐(0) 编辑
摘要: https://www.yuque.com/easyexcel/doc/write 1、加入jar <dependency> <groupId>cn.afterturn</groupId> <artifactId>easypoi-spring-boot-starter</artifactId> <v 阅读全文
posted @ 2020-11-11 11:23 黑质白章 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 一、git分支概念 二、git分支常用命令 1、新建分支 新建一个dev的分支,并切换到dev:gitg checkout -b dev 新建dev的分支:git branch dev 切换到dev分支下:git checkout dev 2、合并分支g 将dev分支合并到当前分支下:git mer 阅读全文
posted @ 2020-11-11 11:21 黑质白章 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1、@Scheduled的使用。 前提: @SpringBootApplication @EnableScheduling //开启定时器 public class Application { public static void main(String[] args) { SpringApplic 阅读全文
posted @ 2020-11-11 11:20 黑质白章 阅读(712) 评论(0) 推荐(0) 编辑
摘要: 一、git的安装。 1、下载git 最新下载地址:https://git-scm.com/download/win 2、安装 ①选择对应的32位或者64位版本,"下一步"安装即可。 二、git的配置 配置用户名 : $git config --global user.name "you name" 阅读全文
posted @ 2020-11-11 11:20 黑质白章 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Docker 安装kafka 报错(连接kafka时): Error response from daemon: Container 38dc059cfa8ab610d3e288d969f9973b908dca7034a3588a4a8df1f39df2b06b is not running 这 个 阅读全文
posted @ 2020-11-07 11:22 黑质白章 阅读(521) 评论(0) 推荐(0) 编辑
摘要: @Test public void get_last_day_of_month(){ //获取2020-02的最后一天 String dateString = "2020-02" ; //获取年月 int year = Integer.parseInt(dateString.split("-")[0 阅读全文
posted @ 2020-11-03 14:24 黑质白章 阅读(7559) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 16 下一页