会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
搬运工(可内推海康威视)
欢迎点赞
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
14
下一页
2020年8月21日
springboot+ 线程池
摘要: //线程池类,直接复制不用修改 import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springfram
阅读全文
posted @ 2020-08-21 17:53 帖子搬运工
阅读(195)
评论(0)
推荐(0)
2020年8月17日
mongodb文件按照时间备份
摘要: @echo off set PG_BIN_DIR=D:\aa\mongodb\bin\ rem 备份文件保存的路径 set BACK_UP_DIR=D:\aa\mongodbDataBackups\ set BAK_FILE_NAME=yapi_bak_%date:~0,4%%date:~5,2%%
阅读全文
posted @ 2020-08-17 15:33 帖子搬运工
阅读(388)
评论(0)
推荐(0)
2020年8月3日
@NotEmpty @NotNull 不管用
摘要: 1、首先在实体类上加上注解 @Data public class UserInfo { @Field("user_name") @NotEmpty(message = "用户名不能为空") private String username; @NotEmpty(message = "用户密码不能为空"
阅读全文
posted @ 2020-08-03 14:42 帖子搬运工
阅读(7002)
评论(0)
推荐(0)
2020年7月31日
mongoTemplate mapReduce()
摘要: import com.Dao.MapReduceDao; import com.mongodb.BasicDBObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframewo
阅读全文
posted @ 2020-07-31 14:37 帖子搬运工
阅读(737)
评论(0)
推荐(0)
2020年7月30日
读取流文件文件名被更改
摘要: @RestController public class ReadAppController { //文件的名字 @Value("${app.name}") private String appName; @GetMapping("get/app") private void getAPP(Http
阅读全文
posted @ 2020-07-30 16:02 帖子搬运工
阅读(489)
评论(0)
推荐(0)
2020年7月29日
var let const
摘要: 重复定义 修改值 声明提升 块级作用域 循环 var √ √ √ ×(function除外) √ let × √ × √ √ const × ×(数组对象除外) × √ × 声明提升:var a = 1这句话会被浏览器读成 var a和a = 1两句话执行,其中var a会在编译阶段就先执行了,而a
阅读全文
posted @ 2020-07-29 16:17 帖子搬运工
阅读(121)
评论(0)
推荐(0)
2020年7月20日
pinyin4j 实现 中文和拼音之间转化
摘要: maven依赖: <!-- https://mvnrepository.com/artifact/com.belerweb/pinyin4j --> <dependency> <groupId>com.belerweb</groupId> <artifactId>pinyin4j</artifact
阅读全文
posted @ 2020-07-20 09:06 帖子搬运工
阅读(841)
评论(0)
推荐(0)
2020年7月15日
mongoTemplate Aggregation first
摘要: Aggregation managerSum = Aggregation.newAggregation( Aggregation.group("_id").first("by_user").as("by_user").first("title").as("title") .count().as("j
阅读全文
posted @ 2020-07-15 16:27 帖子搬运工
阅读(2240)
评论(0)
推荐(0)
封装返回前端的通用格式
摘要: public static<T> ResultVO<T> success(T data){ ResultVO<T> resultVO = new ResultVO<>(); resultVO.setCode(ExceptionEnum.SUCCESS.getCode()); resultVO.set
阅读全文
posted @ 2020-07-15 14:27 帖子搬运工
阅读(224)
评论(0)
推荐(0)
Mongodb 多条件 聚合操作
摘要: Aggregation managerSum = Aggregation.newAggregation( Aggregation.unwind("asset_manager_lease"), Aggregation.match(criteria), Aggregation.group("asset_
阅读全文
posted @ 2020-07-15 09:51 帖子搬运工
阅读(2804)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
14
下一页
公告