随笔分类 -  java

摘要:调用thrift接口压测的jar包,出现了错误:java.lang.NoSuchMethodError: 错误可能的原因: 解决办法: 1. 查看生成jar包的maven工程,看thrift文件中是否有该方法,如果没有,就是thrift文件版本问题或调用函数出错 2. 若thrift文件中有此方法, 阅读全文
posted @ 2016-11-08 14:54 一生守候 阅读(3247) 评论(0) 推荐(0)
摘要:post调用url:“接口url”+/rpc post调用参数body: { "ver": "接口版本号", "soa":{"req":"123"}, //123取值随意? "iface":"接口调用依赖方法", "method":"接口调用方法名", "args":{"arg0":"参数0","a 阅读全文
posted @ 2016-10-31 15:24 一生守候 阅读(2833) 评论(0) 推荐(0)
摘要:可参照github代码:https://github.com/rabbitmq/rabbitmq-tutorials/blob/master/java/EmitLogTopic.java 1. 新建maven项目 2. 在pom.xml中添加rabbitmq依赖 3. 在pom.xml中添加juni 阅读全文
posted @ 2016-10-21 16:22 一生守候 阅读(329) 评论(0) 推荐(0)
摘要:所有maven依赖jar包地址:https://repo1.maven.org/maven2/org/apache/ 1. 安装jar包失败报错: The following artifacts could not be resolved: commons-math3:commons-math3:j 阅读全文
posted @ 2016-10-13 16:57 一生守候 阅读(3380) 评论(0) 推荐(0)
摘要:1. 安装thrift 2. 新建maven工程,代码结构如下 3. pom设置,按配置存放thrift文件和打包描述文件(具体代码见附件,根据需要改变配置信息) 4. thrift需要手动添加namespace 5. mvn clean install -Dmaven.test.skip=true 阅读全文
posted @ 2016-10-11 15:15 一生守候 阅读(1382) 评论(0) 推荐(0)
摘要:可参考:http://www.cnblogs.com/davenkin/archive/2012/02/15/install-jar-into-maven-local-repository.html 对于Maven项目来说,日常使用的多数第三方java库文件都可以从Maven的Central Rep 阅读全文
posted @ 2016-10-11 15:02 一生守候 阅读(1135) 评论(0) 推荐(0)