2021年11月25日
摘要: 如果是docker环境如下命令 mongoimport -h 127.0.0.1 -u root -p root --authenticationDatabase admin -d hotelgss -c * /var/www/app/*.json 阅读全文
posted @ 2021-11-25 13:47 小胡桐 阅读(14) 评论(0) 推荐(0) 编辑
  2021年10月25日
摘要: /** * 跨域配置 */@Beanpublic CorsFilter corsFilter(){ CorsConfiguration config = new CorsConfiguration(); config.setAllowCredentials(true); // 设置访问源地址 con 阅读全文
posted @ 2021-10-25 21:45 小胡桐 阅读(48) 评论(0) 推荐(0) 编辑
  2021年2月24日
摘要: /** * 显示选择上传的图片略缩图 * 当选择了图片文件时触发这个方法 */function previewFile() { // 通过标签选择器获取HTML元素 var preview = document.querySelector('#addImg'); // var preview = $ 阅读全文
posted @ 2021-02-24 10:59 小胡桐 阅读(89) 评论(0) 推荐(0) 编辑
  2020年12月14日
摘要: /** 性能分析拦截器,用于输出每条 SQL 语句及其执行时间 */ @Bean public PerformanceInterceptor performanceInterceptor() { PerformanceInterceptor performanceInterceptor = new 阅读全文
posted @ 2020-12-14 15:14 小胡桐 阅读(339) 评论(0) 推荐(0) 编辑
  2020年11月22日
摘要: 1、settings.json设置 "git.path": "G:/Git/bin/git.exe",//配置git "git.enableSmartCommit": true, // "terminal.integrated.shell.windows": "C:\\WINDOWS\\System 阅读全文
posted @ 2020-11-22 21:59 小胡桐 阅读(274) 评论(0) 推荐(0) 编辑
  2020年11月19日
摘要: laydate.render({ elem:'#arriveHotelTime', type:'time' , format:'HH:mm',//显示格式:小时:分钟 min:'12:00:00', max: '23:30:00', theme: 'molv', ready: function (d 阅读全文
posted @ 2020-11-19 17:23 小胡桐 阅读(254) 评论(0) 推荐(0) 编辑
  2020年8月25日
摘要: db.getCollection('zhxHotelNotMatch').aggregate( {'$group':{ '_id': {'字段名': '$字段名'}, 'uniqueIds': {'$addToSet': '$字段名'}, 'count' : {'$sum': 1} }}, {'$m 阅读全文
posted @ 2020-08-25 12:58 小胡桐 阅读(1437) 评论(0) 推荐(0) 编辑
  2020年5月19日
摘要: public boolean isObjectFieldEmpty(Object object) { boolean flag = false; if (object != null) { Class<?> entity = object.getClass(); Field[] fields = e 阅读全文
posted @ 2020-05-19 12:29 小胡桐 阅读(427) 评论(0) 推荐(0) 编辑
  2019年10月30日
摘要: https://www.cnblogs.com/xiaostudy/p/11163234.html 阅读全文
posted @ 2019-10-30 21:57 小胡桐 阅读(186) 评论(0) 推荐(0) 编辑
  2019年8月25日
摘要: 自己在玩Ubuntu的时候连接Xshell,但是Ubuntu的ens33没有显示IP地址,如下图: 配置步骤: 1、修改配置文件 sudo vim /etc/network/interfaces 添加: auto eth0 iface eth0 inet static address 192.168 阅读全文
posted @ 2019-08-25 22:40 小胡桐 阅读(35008) 评论(0) 推荐(0) 编辑