上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: /** * 上传文件至GridFs * @param gridFsTemplate * @param file */ 需要自行导入jar包 public static ObjectId uploadFile(GridFsTemplate gridFsTemplate, MultipartFile f 阅读全文
posted @ 2020-04-22 09:19 帖子搬运工 阅读(568) 评论(0) 推荐(0)
摘要: handlePreview(file) { getFile(file.id) .then(res => { const blob = new Blob([res]); if (window.navigator.msSaveOrOpenBlob) { // 兼容IE navigator.msSaveB 阅读全文
posted @ 2020-04-20 15:39 帖子搬运工 阅读(1354) 评论(0) 推荐(0)
摘要: 在pom中添加 <dependency> <groupId>com.xl</groupId> <artifactId>demo</artifactId> <version>1.60</version> <scope>system</scope> <systemPath>jar包的路径</system 阅读全文
posted @ 2020-04-18 09:05 帖子搬运工 阅读(958) 评论(0) 推荐(0)
摘要: sudo apt install mongodb show dbs // 显示所有的数据库 use admin // 切换到 admin db.createUser({user:'root',pwd:'root',roles:['userAdminAnyDatabase']})db.auth('ro 阅读全文
posted @ 2020-04-17 20:29 帖子搬运工 阅读(462) 评论(0) 推荐(0)
摘要: 第一步导入依赖 <dependency> <groupId>aopalliance</groupId> <artifactId>aopalliance</artifactId> <version>1.0</version> </dependency><dependency> <groupId>org 阅读全文
posted @ 2020-03-29 22:34 帖子搬运工 阅读(198) 评论(0) 推荐(0)
摘要: 入口类 public class xuleiTest { public static void main(String[] args) { String a = xuleiEnum.ONE.toString(); String b = xuleiEnum.TWO.toString(); String 阅读全文
posted @ 2020-03-19 11:42 帖子搬运工 阅读(92) 评论(0) 推荐(0)
摘要: 很多不太懂正则的朋友,在遇到需要用正则校验数据时,往往是在网上去找很久,结果找来的还是不很符合要求。所以我最近把开发中常用的一些正则表达式整理了一下,在这里分享一下。给自己留个底,也给朋友们做个参考。 输入框只能输入数字和点 replace(/[^\d.]/g,'') 一、校验数字的表达式 1. 数 阅读全文
posted @ 2020-03-18 18:05 帖子搬运工 阅读(138) 评论(0) 推荐(0)
摘要: 调用方法的时候加上括号 阅读全文
posted @ 2020-03-16 10:39 帖子搬运工 阅读(1089) 评论(0) 推荐(0)
摘要: 一、安装过程 1.到mongodb官网下载对应系统的压缩包,我的系统是centos 7.3,64位。(注意不要选错系统版本,也可以在本地下载好后上传到云服务器) 2.默认下载路径是到用户目录下的Downloads目录,将其解压(注意一定要使用3.2.12这个版本,版本太高有坑) tar -zxvf 阅读全文
posted @ 2020-03-12 14:44 帖子搬运工 阅读(287) 评论(0) 推荐(1)
摘要: import { Platform} from 'react-native'; {Platform.OS} 阅读全文
posted @ 2020-03-06 16:05 帖子搬运工 阅读(258) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页