2020年2月27日

Java 将文件打包为zip压缩包下载

摘要: 1、添加依赖 <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant</artifactId> <version>1.10.5</version> </dependency> 2、编写工具类 package com.crtw.ut 阅读全文

posted @ 2020-02-27 10:50 滚动的蛋 阅读(5817) 评论(0) 推荐(0) 编辑

2020年2月22日

pip使用报错“module object is not callable”

摘要: pip报错 TypeError: 'module' object is not callable C:\Users\滚动的蛋>pip Traceback (most recent call last): File "d:\python3.8\lib\runpy.py", line 193, in _ 阅读全文

posted @ 2020-02-22 17:09 滚动的蛋 阅读(605) 评论(0) 推荐(0) 编辑

2020年2月20日

gyp ERR! UNCAUGHT EXCEPTION(npm cnpm yarn)

摘要: 使用yarn install 报错如下: gyp info spawn args ]gyp ERR! UNCAUGHT EXCEPTIONgyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\C 阅读全文

posted @ 2020-02-20 20:31 滚动的蛋 阅读(4668) 评论(0) 推荐(0) 编辑

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 滚动的蛋 阅读(20278) 评论(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 滚动的蛋 阅读(12986) 评论(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 滚动的蛋 阅读(2226) 评论(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 滚动的蛋 阅读(1325) 评论(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 滚动的蛋 阅读(741) 评论(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 滚动的蛋 阅读(364) 评论(0) 推荐(0) 编辑

富兰克林的人生信条

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

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

导航