![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
资料
文章平均质量分 75
weixin_45849726
这个作者很懒,什么都没留下…
展开
-
Spring Boot 下载文件路径问题
java中的路径问题:System.out.println(System.getProperty(“user.dir”));//输出:F:\Java\project\study\iot_em//当前项目绝对路径System.out.println(request.getSession().getServletContext().getRealPath(""));//输出:F:\Java\project\study\iot_em\src\main\webapp//web程序路径,可指定文件URI,转载 2021-12-02 13:23:51 · 1420 阅读 · 0 评论 -
java之获得当天的年份,月份,零时零分零秒
/*** 获得当天零时零分零秒* @return*/private Date initDateByDay(){Calendar calendar = Calendar.getInstance();calendar.setTime(new Date());calendar.set(Calendar.HOUR, 0);calendar.set(Calendar.MINUTE, 0);...原创 2019-11-26 19:51:55 · 228 阅读 · 0 评论 -
npm install时报错gyp ERR! stack Error: Can't find Python executable "2.7",不安装Python的解决方法
具体报错信息如下gyp verb ensuring that file exists: C:\Python27\python.exegyp ERR! configure errorgyp ERR! stack Error: Can’t find Python executable “python2.7”, you can set the PYTHON env variable.gyp ER...转载 2019-11-18 22:43:16 · 4035 阅读 · 0 评论 -
前后端交互之promise
前后端交互模式1.url地址格式传统的url:格式: sehema://host:port/path?query#fragment1)schema:协议,如http,https,ftp等2)host:域名或ip地址3)port:端口号4)path:路径,定位资源5)query:查询参数6)fragment:锚点(哈希Hash),用于定位页面的某个位置restful风格的url...原创 2019-11-15 20:54:43 · 593 阅读 · 0 评论 -
js中转换时间对象或者毫秒数为指定格式字符串
function dateFormat(date,format) { if (typeof date === "string") { var mts = date.match(/(\/Date\((\d+)\)\/)/); if (mts && mts.length >= 3) { ...原创 2019-11-07 20:43:18 · 213 阅读 · 0 评论