- 博客(27)
- 收藏
- 关注
原创 PrepareForTest的使用场景
当使用PowerMockito.whenNew方法时,必须加注解@PrepareForTest和@RunWith。注解@PrepareForTest里写的类是需要mock的new对象代码所在的类。当需要mock final方法的时候,必须加注解@PrepareForTest和@RunWith。注解@PrepareForTest里写的类是final方法所在的类。 当需要mock静态方法的时候,必须...
2018-08-02 09:55:32 5170
原创 springboot async
官网介绍https://spring.io/guides/gs/async-method/ 很好的文章https://egkatzioura.com/2017/10/25/spring-and-async/
2018-07-27 09:00:21 182
原创 springboot 相关link
如何创建一个最基本的springboot程序 https://docs.spring.io/spring-boot/docs/current/reference/html/getting-started-first-application.html
2018-07-27 08:52:28 420
原创 Gulp 问题解决
https://stackoverflow.com/questions/31003457/gulp-uglify-events-js-unhandled-error-event .pipe(minifyJs().on('error', function(e){ console.log(e); }))
2018-07-11 11:57:18 194
原创 其他link
文件和表单一起提交:https://www.yiibai.com/spring-boot/file-upload-example-ajax-and-rest.html git小技巧--如何从其他分支merge个别文件或文件夹https://www.cnblogs.com/-mrl/p/6648668.html 使用Powermock对私有方法进行mockhtt...
2018-07-05 14:21:47 116
原创 java.lang.RuntimeException: Unable to gossip with any seeds (cassandra)
INFO [main] 2018-03-20 17:48:49,421 OutboundTcpConnection.java:108 - OutboundTcpConnection using coalescing strategy DISABLEDERROR [main] 2018-03-20 17:49:20,497 CassandraDaemon.java:708 - Exce...
2018-03-20 19:49:04 1967 1
原创 apt-get不好用,找不到packages
https://stackoverflow.com/questions/30316812/ubuntu-apt-get-unable-to-fetch-packages/35096935sudo do-release-upgradesudo apt-get update
2018-03-20 12:55:53 496
原创 理解statefulset工作原理
1 - yaml文件 kind: PersistentVolume == 同上一篇,定义PV和PVCapiVersion: v1metadata: name: task-pv-volume labels: type: localspec: storageClassName: manual capacity: storage: 2G...
2018-03-19 14:30:08 1212 2
原创 基于docker for windows的host path用法
https://kubernetes.io/docs/concepts/storage/volumes/ 1 - 声明一个PV(persistent volume),也就是声明一个空间 kind: PersistentVolumeapiVersion: v1metadata: name: task-pv-volume labels: type: lo...
2018-03-18 21:25:38 4320 1
原创 Atom使用国内镜像
1 - create a new file named '.apmrc' under directorty 'C:\Users\WeiJia\.atom' like belowC:\Users\{userid}\.atom\.apmrc 2 - add the following content into itstrict-ssl=false#https-proxy=http...
2018-03-14 13:38:50 1533
原创 KAFKA
install apache kafka 1 - download zookeeper of version 3.4.10http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.10/ 2 - download kafka of version kafka_2.12-1.0.0http://mirror.bit...
2018-03-10 18:35:30 126
原创 Kubenetes on Docker
https://docs.docker.com/docker-for-windows/kubernetes/根据官方文档docker开始支持kubenete了,我下载的是18.03.0-ce版本 C:\e\docker\Hello-Call>docker versionClient: Version: 18.03.0-ce-rc1 API versio...
2018-03-05 14:19:28 620
原创 Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1
问题描述 安装pandas出错: C:\WINDOWS\system32>pip install pandas --proxy http://localhost:1080 UPDATING build\lib.win-amd64-3.4\pandas/_version.py set build\lib.win-amd64-3.4\pandas/_version.p...
2018-03-05 07:24:46 879
原创 JPA JNDI without container
persistence.xml <?xml version="1.0" encoding="UTF-8" ?><persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence ht...
2017-07-03 07:16:17 165
原创 Websphere MQ 安装后 MQ 本地连接,2035
win7,errorlog的路径C:\ProgramData\IBM\MQ\qmgrs\QM1\errors** 关闭通道验证alter qmgr CHLAUTH(DISABLED)ALTER AUTHINFO(SYSTEM.DEFAULT.AUTHINFO.IDPWOS) AUTHTYPE(IDPWOS) CHCKCLNT(NONE)REFRESH SECURITY TYPE(C...
2017-07-01 11:46:20 472
原创 安装redis on cygwin
1.首先确保make cc 安装了2.修改一下文件user@IBM174-PBW16MW /usr/local/redis-3.2.9$ cat deps/hiredis/net.c#include "sds.h"#ifdef __CYGWIN__#define TCP_KEEPCNT 8#define TCP_KEEPINTVL 150#define TCP_KEEPIDLE 1440...
2017-05-21 22:07:56 123
原创 Oauth 2 jwt enhancer
Auth2 server 自定义 TokenEnhancer1------------public class CustomTokenEnhancer implements TokenEnhancer { @Override public OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Au...
2017-04-04 14:48:35 221
原创 LINK related to spark
如何提交spark jar到clusterhttp://spark.apache.org/docs/latest/submitting-applications.html
2017-01-14 19:42:24 152
原创 HTTP请求,并将结果save到本地文件
import scala.io.Sourceobject HttpGet { def main(args: Array[String]): Unit = { println("begin") for (line <- Source.fromFile("c:/videoid.txt").getLines) { try { val videoid = li...
2017-01-12 10:00:38 1230
原创 HIVE Install
Refer the following link to install. https://www.edureka.co/blog/apache-hive-installation-on-ubuntuhttp://www.tutorialspoint.com/hive/hive_installation.htmhttp://yanliu.org/2015/08/13/Hadoop%E9%9...
2017-01-09 19:24:08 178
原创 添加域名解析
C:\Windows\System32\drivers\etc #hadoop192.168.56.101 master192.168.56.102 slave
2017-01-07 14:16:55 138
原创 Hadoop 2.0 cluster install
Masterhduser@master:~$ jps8500 Jps7476 DataNode8150 NodeManager7355 NameNode8030 ResourceManagerhduser@master:~$Slavehduser@slave:~$ jps7378 NodeManager6628 DataNode7510 Jps6749 SecondaryNameNodehdus...
2017-01-07 11:19:48 120
原创 SPARK 环境准备
1-install javahttps://my.oschina.net/mxs/blog/5188262-install handoophttp://www.bogotobogo.com/Hadoop/BigData_hadoop_Install_on_ubuntu_single_node_cluster.phphttps://my.oschina.net/itblog/blog/282694...
2017-01-06 22:56:13 110
原创 maven下载依赖jar速度慢
修改maven home/conf下的settings.xml文件,添加ali镜像到镜像列表中。 <mirrors> <mirror> <!--This sends everything else to /public --> <id>nexus</id> <mirr...
2017-01-05 19:51:33 119
原创 Maven 本地jar依赖
1 - 安装jar到本地仓库mvn install:install-file -Dfile=db2jcc.jar -DgroupId=lighthouse -DartifactId=db2 -Dversion=1.0 -Dpackaging=jar 2 - pom.xml中使用jar <dependencies> <dependency> ...
2017-01-05 19:36:27 117
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人