2020年2月20日

gyp ERR! find VS

摘要: yarn install 安装提示错误如下: gyp ERR! find VSgyp ERR! find VS msvs_version not set from command line or npm configgyp ERR! find VS VCINSTALLDIR not set, not 阅读全文

posted @ 2020-02-20 18:03 滚动的蛋 阅读(20600) 评论(0) 推荐(0)

gyp ERR! find Python

摘要: yarn install 安装依赖报错如下: gyp ERR! find Python gyp ERR! find Python Python is not set from command line or npm configuration gyp ERR! find Python Python 阅读全文

posted @ 2020-02-20 17:55 滚动的蛋 阅读(13391) 评论(0) 推荐(0)

2020年2月15日

MySQL 替换手机号码中间4位为星号显示

摘要: select REPLACE(tel,SUBSTR(tel,4,4),'****') tel from rwork_uinfo where comp_id = 3722 查询结果: 阅读全文

posted @ 2020-02-15 12:13 滚动的蛋 阅读(2266) 评论(0) 推荐(0)

2020年2月10日

React connect()() 双括号 --柯里化写法

摘要: 1、有人提问: 这段代码是dva的基础代码 import React from 'react'; import { connect } from 'dva'; function IndexPage() { return ( <div> this is a div </div> ); } export 阅读全文

posted @ 2020-02-10 19:35 滚动的蛋 阅读(1363) 评论(0) 推荐(2)

同一个tomcat下部署多个springboot项目时,springboot项目无法正常启动的问题

摘要: 1、描述 将多个springboot项目分别打成war包部署到tomcat下,启动失败。 日志中的错误如下: Caused by: org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MB 阅读全文

posted @ 2020-02-10 15:32 滚动的蛋 阅读(782) 评论(0) 推荐(0)

ant desgin pro 跨页面传参

摘要: link方式 import { Link } from 'react-router-dom'; 或者 import { Link } from 'dva/router'; <Link to={{pathname:'/article',id:id}}>查看更多</Link> 接受参数: {this.p 阅读全文

posted @ 2020-02-10 11:44 滚动的蛋 阅读(395) 评论(0) 推荐(0)

富兰克林的人生信条

摘要: 最近在读富兰克林自传,觉得牛人一定有自己的人生配方,每个人都要找到通向自己人生的道路,自己的信条。 修身齐家治国平天下 《礼记·大学》:"古之欲明明德于天下者,先治其国;欲治其国者,先齐其家;欲齐其家者,先修其身;欲修其身者,先正其心;欲正其心者,先诚其意;欲诚其意者,先致其知,致知在格物。物格而后 阅读全文

posted @ 2020-02-10 10:23 滚动的蛋 阅读(319) 评论(0) 推荐(0)

2020年2月9日

node 一拉管理工具 yarn安装(npm的替代品)

摘要: Yarn是Facebook发布的一款依赖包安装工具。Yarn是一个新的快速安全可信赖的可以替代NPM的依赖管理工具 具体使用请查看: https://www.cnblogs.com/xiangsj/p/8083094.html 阅读全文

posted @ 2020-02-09 12:11 滚动的蛋 阅读(275) 评论(0) 推荐(0)

2020年2月8日

python pip 安装包下载过慢的解决方法 socket.timeout: The read operation timed out

摘要: 1、使用pip安装第三方库过慢导致超时无法安装: pip install reportlab 出现异常: socket.timeout: The read operation timed out 2、 原因: pip下载的时国外的资源,速度过慢,应该切换至国内镜像 3、解决方法: 更换 pip 源自 阅读全文

posted @ 2020-02-08 21:55 滚动的蛋 阅读(3323) 评论(0) 推荐(1)

springBoot 文件下载

摘要: springboot读取文件响应为下载流 /** * zip模板下载 * @param tempCode 模板编码 * @param response */ @RequestMapping("/zip/download") public void zipDownload(HttpServletRes 阅读全文

posted @ 2020-02-08 20:18 滚动的蛋 阅读(780) 评论(0) 推荐(0)

导航