会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
六元
博客园
首页
新随笔
联系
订阅
管理
2023年1月3日
go+mongodb更新数组对象语法UpdateOptions
摘要: UpdateOptions语法更新mongodb数组中符合条件的对象1.定义条件(elem可自定义)interfaceArr:=make([]interface{},0)interfaceArr=append(interfaceArr,bson.m{ "elem.id":"111",})_,err:
阅读全文
posted @ 2023-01-03 11:27 六元
阅读(343)
评论(0)
推荐(0)
2022年8月19日
golang+mongodb+Aggregate管道查询
摘要: 在go语言中使用mongodb管道创建视图并条件分页查询 使用bson.D{{}}包裹管道关键字条件 例如: go语言中MongoDB配置qmgo 查询总页数: bson.D{ { "$count", "total_count", },},分页查询:skip为跳过几条数据跳过条数=当前页-1乘每页数
阅读全文
posted @ 2022-08-19 11:30 六元
阅读(949)
评论(0)
推荐(0)
2021年6月7日
Echarts - legend属性分析
摘要: legend: { show: true, //是否显示 type: "plain", // 图例的类型 'plain':普通图例 'scroll':可滚动翻页的图例 zlevel: 1, // 所有图形的 zlevel 值。 icon: "circle", top: "5%", // bottom
阅读全文
posted @ 2021-06-07 10:43 六元
阅读(567)
评论(0)
推荐(0)
2021年4月23日
vue+tinymce
摘要: 1.安装tinymce npm install tinymce -S 2.安装tinymce-vue npm install @tinymce/tinymce-vue -S 3.下载中文语言包 地址:<https://www.tiny.cloud/get-tiny/language-packages
阅读全文
posted @ 2021-04-23 10:02 六元
阅读(382)
评论(0)
推荐(0)
2020年12月30日
java RestTemplate.postForObject请求传参
摘要: String requestUrl = "https://url?param=PARAM"; RestTemplate restTemplate = new RestTemplate();requestUrl=requestUrl.replace("PARAM", "params");//替换url
阅读全文
posted @ 2020-12-30 16:00 六元
阅读(1275)
评论(0)
推荐(0)
2020年12月26日
java计算今天起后7天时间 +昨天八点+今天前7天的日期
摘要: /** * 今天起 近7天日期 后七天 * @param days=6 * @return */public static List<String> getDaysBetwwen(int days){ //最近几天日期 List<String> dayss = new ArrayList<>();
阅读全文
posted @ 2020-12-26 10:49 六元
阅读(667)
评论(0)
推荐(0)
2020年12月24日
layui+echarts+动态数据
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" href="layui/css/layui.css"> <link rel="icon" href="img/dnic
阅读全文
posted @ 2020-12-24 17:15 六元
阅读(1309)
评论(0)
推荐(0)
java +js+qrcode+JSZip生成二维码并打包下载
摘要: 引入 <script src="../../js/qrcode.js"></script> <!--打包下载--> <script src="../../js/jszip.min.js"></script> <script src="../../js/FileSaver.js"></script>
阅读全文
posted @ 2020-12-24 16:31 六元
阅读(538)
评论(0)
推荐(0)
spring boot 申请微信退款
摘要: 一、需要API证书(apiclient_cert.p12证书的,在微信公众号上下载–注意PKCS12证书 是从微信商户平台-》账户设置-》 API安全 中下载的 。) java用的是.12格式的证书 保存相关配置工具类 // 微信号,public static String APP_ID = "";
阅读全文
posted @ 2020-12-24 16:11 六元
阅读(468)
评论(0)
推荐(0)
2020年12月18日
@Scheduled定时器
摘要: 每隔5秒执行一次:"*/5 * * * * ?" 每隔1分钟执行一次:"0 */1 * * * ?" 每小时执行一次:"0 0 */1 * * ? " 或者"0 0 * * * ? " 每天23点执行一次:"0 0 23 * * ?" 每天凌晨1点执行一次:"0 0 1 * * ?" 每天1点10分
阅读全文
posted @ 2020-12-18 17:32 六元
阅读(557)
评论(0)
推荐(0)
下一页
公告