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