- 博客(94)
- 资源 (7)
- 收藏
- 关注
原创 Mac Springboot 启动缓慢
背景最近从15款换19款的mac pro,配置完springboot环境后,发现项目启动从29s变成了230s,环境&代码一模一样,令人费解Started Application in 194.004 seconds (JVM running for 227.3)解决方案具体见链接https://amsterdam.luminis.eu/2017/05/10/fixing-s...
2019-11-15 13:05:27
607
原创 Mybatis 使用distinct问题
使用插件自动生成sql,具体如下 <resultMap id="versioncodeResult" type="java.lang.String" > <result column="code" property="code" jdbcType="VARCHAR" /> </resultMap> <select id="selectV...
2019-05-31 14:46:53
20767
原创 VUE 报Warning:the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope
具体报错信息Module Warning (from ./node_modules/vue-loader/lib/loaders/templateLoader.js):(Emitted value instead of an instance of Error) the "scope" attribute for scoped slots have been deprecated and re...
2019-05-08 13:56:20
2077
原创 vue lint报错Elements in iteration expect to have 'v-bind:key'
具体报错 vue-cli-service lint found some errors. Please fix them and try committing again. error: Elements in iteration expect to have 'v-bind:key' directives (vue/require-v-for-key) at src/v...
2019-04-15 19:21:45
1369
原创 SpringBoot 上传报错;the request was rejected because its size (796311) exceeds the configured maximum (1
SpringBoot 上传文件报错,请求大小超过了配置的最大值具体报错:org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (79637511) exceeds the configured maxi...
2019-03-25 11:54:50
23354
9
原创 Echarts报错 Uncaught Error: series.type should be specified.
使用Echarts报错Uncaught Error: series.type should be specified. at Function.entity.getClass (clazz.js?625e:158) at ExtendedClass.eval (Global.js?7e63:203) at Array.forEach (&lt;anonymous&gt;) ...
2018-11-29 10:11:09
34342
5
原创 adb安装提示INSTALL_FAILED_TEST_ONLY
背景adb -s 192.168.64.101:5555 install /Users/xxxx/Documents/AndroidStudioProjects/6.10.1/xxx.apk [100%] /data/local/tmp/xxx.apk pkg: /data/local/tmp/xxx.apkFailure [INSTALL_FAILED_TEST_ONLY]...
2018-07-23 20:00:22
903
原创 docker exec提示错误oci runtime error: exec failed: container_linux.go
sudo docker exec -it 569f05d5f4fc /bin/bash 提示错误rpc error: code = 13 desc = invalid header field value "oci runtime error: \ exec failed: container_linux.go:247: \ starting container proces...
2018-06-12 15:43:27
28196
3
原创 swarm系列-swarm之service(5)
swarm允许我们以节点的方式组织集群;每个节点上面可以部署一个或者多个服务;每个服务又可以包括一个或者多个container.下面会以官网的例子来讲下service,具体应用还是需要根据业务场景在执行机manager执行以下命令docker service create\ --replicas 1 \ --name helloworld \ alpine ping dock...
2018-06-11 17:58:59
1395
原创 swarm系列-swarm可视化之visualizer(4)
visualizer是官方的简单容器状态可视化工具安装docker run -it -d -p 5000:8080 \ -v /var/run/docker.sock:/var/run/docker.sock \ dockersamples/visualizer访问ip:5000访问页面查看 ...
2018-06-11 17:31:07
720
原创 swarm系列-swarm可视化之portioner(3)
portioner提供了swarm可视化,源代码也在GitHub 上,它是在DockerUI的基础上开发的。在swarm manager执行命令安装portionersudo docker service create --name portainer --publish 9000:9000 \ --constraint 'node.role == manager' \ --mou...
2018-06-11 17:22:44
927
原创 swarm系列-搭建swarm集群 (2)
准备两台机器centOS机器,安装好docker后,选择一台当swarm manager,另外一台当swarm worker,用于搭建swarm集群执行机 ip HOSTNAME MANAGER STATUS 30.35.108.4 manager Leader 30.35.108.5 worker 所有执行机上pull ...
2018-06-11 17:15:48
546
原创 swarm系列-CentOS 7 安装docker (1)
使用swarm 推荐安装docker 1.12.3centOS7 安装docker系统版本cat /etc/redhat-releaseCentOS Linux release 7.2.1511 (Core) 安装dockersudo mkdir -p ~/_src &amp;&amp; cd ~/_src &amp;&amp; sudo wget ht...
2018-06-11 16:51:43
430
原创 Android apk 分析工具 Analyze APK Compare APK
apk文件比对新版本发布时,需要check下新版本Apk包大小,以及具体哪些文件导致Apk变大,从而针对性的进行优化。Android studio 有工具Analyze APK 做了类似的事情,但是无法进行持续集成,本文参照Alalyze APK 的功能,分析APK各个文件大小,并给出对应的结果报告使用方法java -jar apk.jar App-1.0.apk App-2.0...
2018-05-23 16:19:48
5165
原创 Mac 下出现Gradle sync failed: SDK location not found. Define location with sdk.dir in the local.propert
Mac 下出现Gradle sync failed: SDK location not found. Define location with sdk.dir in the local.properties检查了下环境变量和local.properties 都已经设置了sdk路径,后来google了下发现Mac需要执行launchctl setenv ANDROID_HOME /Use
2018-01-15 11:45:30
3022
原创 nodejs生成二维码
首先npm install qr-image --save具体代码如下:var qr_image = require('qr-image')var fs = require('fs')var temp_qrcode = qr_image.image('www.baidu.com',{ ec_level: 'H' })//设置容错率level为30%temp_qrcode.pipe(require
2017-11-13 17:41:47
4699
原创 前端模拟点击
比如想点击百度首页的几个tab,如下图 直接到console中输入:var timer = setInterval(function() { document.querySelectorAll('span.s-menu-item.s-opacity-white-background')[Math.floor(Math.random() * 3)].click()}, 100);既可以每隔
2017-11-08 16:20:26
1401
原创 npm 发布自己package
发布自己写的package首先确保registry正确npm config get registry### 检查registry,如果是淘宝https://registry.npm.taobao.org/,更改正确的npm config set registry=http://registry.npmjs.org登录账号npm adduserUsername: xxxPassword: xxx
2017-11-01 18:37:26
423
原创 nodejs 解析Android apk获取app icon
最近在做平台上传应用的时候,需要解析apk拿到icon显示在前端。在npm,github上搜了一圈没找到可用lib。后来想到adbkit-apkreader这个库,依靠里面的一个函数,解决了这个问题代码如下:var ApkReader = require('adbkit-apkreader')var fs = require('fs')ApkReader.open('mobi.thinkchan
2017-11-01 18:08:03
2972
原创 docker android sdk镜像
制作docker android sdk镜像docker file 文件内容:FROM webratio/antENV DEBIAN_FRONTEND noninteractiveRUN apt-get update -y && \ apt-get install -y software-properties-common && \ add-apt-repository ppa:we
2017-10-31 15:27:07
4197
1
原创 docker制作镜像 apt-get 安装文件报错debconf: unable to initialize frontend: Dialog
错误信息debconf: unable to initialize frontend: Dialogdebconf: (TERM is not set, so the dialog frontend is not usable.)debconf: falling back to frontend: Readlinedebconf: unable to initialize frontend:
2017-10-16 16:15:56
14904
原创 zmq错误Error: libzmq.so.3
Error: libzmq.so.3: cannot open shared object file: No such file or directory 解决办法:安装libsodium(zeromq的依赖) github下载最新包:https://github.com/jedisct1/libsodium/releaseswget https://github.com/jedisct1/lib
2017-10-09 14:32:23
3742
原创 Android过度绘制自动化
Android 过度绘制指的是在屏幕某个像素在同一帧的时间内被绘制多次(超过一次),严重的过度绘制会浪费cpu及gpu资源导致性能问题。Google编辑精选对App页面的过度绘制有要求,因此需要对所有的页面进行过度绘制测试。在日常版本测试过程中完全依靠手工来测试页面是否存在过度绘制问题,然而App不同的页面有接近80个,全部手工测试耗时费力。所以,在日常版本测试接手策略中只针对新增页面进行过度绘制手
2017-10-04 11:42:06
1532
原创 Angular报错[ngRepeat:dupes] Duplicates in a repeater are not allowed.
[ngRepeat:dupes] Duplicates in a repeater are not allowed. 原因:item里有重复的值 添加track by $indexul.OH363D-Oi-d(aria-hidden='true', style='{{usesPermissionsizestyle}}') li(ng-repeat='item in ap
2017-09-21 14:57:11
3242
原创 input标签取消选择文件和未选择任何文件
背景 需要去掉input标签取消选择文件和未选择任何文件代码:input.(type='file', ng-file-select='install($files)',style='opacity:0;filter:alpha(opacity=0);')
2017-08-23 17:32:23
17222
原创 ssh2无法连接目标机器
使用node ssh2 提示错误:sudo: sorry, you must have a tty to run sudo解决办法: vi /etc/sudoers 注释掉Defaults requiretty这行## Disable "ssh hostname sudo <cmd>", because it will show the password in clear.#
2017-08-17 21:45:56
1416
原创 systemd-logind导致ssh登录缓慢解决办法
背景见之前centOS ssh登录缓慢解决 深挖了下原因总结成本文。systemd-logind简介:Namesystemd-logind.service, systemd-logind — Login managerSynopsissystemd-logind.service/usr/lib/systemd/systemd-logindDescriptionsystemd-logind is a
2017-08-08 11:09:01
32479
原创 ssh报错:REMOTE HOST IDENTIFICATION HAS CHANGED
ssh host@30.3.10.4@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@IT
2017-08-07 10:23:34
407
原创 MAC 启动apache服务
最近需要打一个简单的本地服务玩玩,mac下自带了Apache服务,直接通过命令启动,然后访问127.0.0.1就可以看到it works启动apache服务sudo apachectl start停止apache服务sudo apachectl stopApache配置httpd.conf所在目录直接命令打开或者shift +command+G前往,可以配置各种配置项比如端口,DocumentRo
2017-08-04 17:05:31
655
原创 ADB卸载所有安装包shell命令出现command not found: ^M
背景想要写个卸载所有安装包的脚本 脚本如下:for line in $(adb shell pm list packages -3|awk -F ':' '{print $2}')do echo "line is: $line" adb uninstall linedone执行shell 命令时出现line is: adb uninstall com.example.an
2017-08-02 15:59:51
3093
原创 Nodejs ssh2 exec执行shell超时终止执行
使用ssh2 模块执行shell的时候,只有在连接目标机器时,有个readyTimeout用于设置ssh连接目标机器的超时终止的参数。 conn.connect({ host: ip, port: 22, username: user, password: password, readyTimeout: 5000}); 没有用于设置she
2017-08-01 22:04:46
4836
原创 Angular Error: $digest already in progress
由于异步(延迟)的存在,当开始执行回调函数的时候,angularJS自身controller中的脏值检测已经结束,无法检测到回调函数导致数据的变化。导致变化了的数据没有刷新到界面上解决办法function apply(scope) { if (!scope.$$phase && !scope.$root.$$phase) { scope.$apply(); console.lo
2017-08-01 21:52:26
738
原创 centOS/Linux ssh登录缓慢 、特别慢
centOS ssh登录缓慢 有一台执行机使用ssh登录很慢,输入完密码后需要等待2,30秒才能够登录进去,简直不能忍.查看日志发现卡在Entering interactive session网上解决办法:修改本机的 /etc/ssh/sshd_config添加 UseDNS no修改目标机器的 /etc/ssh/ssh_config添加 GSSAPIAuthentication no并
2017-07-31 17:19:53
8516
1
原创 JS报错RangeError: Invalid string length
错误信息:RangeError: Invalid string length原因是双重循环时,内层和外层使用了同一个变量i,使用另外一个变量就解决这个问题了
2017-07-23 22:09:00
35138
原创 CentOS7 yum命令错误
$ yumThere was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: No module named yumPlease install a package which provides this module, orve
2017-07-21 10:26:35
1670
原创 MAC 下Sublime text 同时编辑多行内容
同时编辑多行mac全选需要编辑的内容,Command+Shift+L即可编辑多行windows全选需要编辑的内容, Ctrl+Shift+L即可编辑多行
2017-07-20 11:10:08
24206
1
原创 CentOS安装lsusb查看设备串号Serial
安装lsusbecho "password"|sudo -S yum -y install usbutils输入lsusb查看是否安装成功$ lsusbBus 004 Device 005: ID 1a40:0101 Terminus Technology Inc. HubBus 004 Device 004: ID 1a40:0101 Terminus Technology Inc. Hub
2017-07-20 10:55:40
3845
原创 MAC 下git diff出现 ^M
问题:git diff 显示代码改动的时候,发现每一行后面都有^M,如下:解决办法:webstorm中鼠标移到对应的代码行,点击cleanup code
2017-06-20 17:13:30
1284
原创 websocket报错read ECONNRESET
错误信息events.js:141 throw er; // Unhandled 'error' event ^Error: read ECONNRESET at exports._errnoException (util.js:870:11) at TCP.onread (net.js:544:26)解决办法增加error和close的事件监听var ws
2017-06-07 16:40:56
14262
1
软件测试实验作业题目5道 湖北经济
2014-01-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人