05 2020 档案
Java:Java多线程实现性能测试
摘要:创建多线程和线程池 import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; //开启的线程数 int threa
SpringCloud:Eureka 配置心跳机制
摘要:Server服务端 server: port: 8761 eureka: client: #实例是否在eureka服务器上注册自己的信息以提供其他服务发现,默认为true register-with-eureka: false #此客户端是否获取eureka服务器注册表上的注册信息,默认为true
XML:使用cxf调用WebService接口时报错:编码GBK的不可映射字符(设置UTF-8字符集)
摘要:调用代码如下 JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance(); Client client = dcf.createClient(PropertiesUtil.getValue("sms.requrl")
XML:No operation was found with the name报错解决办法
摘要:当我们使用CXF动态客户端调用WebService接口容易出现如下问题:命名空间问题 Exception in thread "main" org.apache.cxf.common.i18n.UncheckedException: No operation was found with the n
XML:xml常用注解
摘要:@XmlRootelement 指定根目录。 //标注在实体类上 @XmlRootElement(name = "xmlEntity") public class XmlEntity{ ………… } @XmlType 将类或枚举类型映射到 XML 模式类型,配合如下属性使用: name 属性在你不想
其他:压力测试Jmeter工具使用
摘要:下载路径: http://yd01.siweidaoxiang.com:8070/jmeter_52z.com.zip 配置汉化中文: 找到jmeter的安装目录:打开 \bin\jmeter.properties 文件 修改37行,去掉# 改为 language=zh_CN 压力测试 启动 jme
WebService:SpringBoot整合CXF实现WebService接口
摘要:依赖引入 引入依赖jar包 <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> <version>3.1.11</version> </dependency> <
WebService:java配置类形式发布WebService接口及遇见的问题总结
摘要:配置WebService前需要以下依赖jar包 #版本只供参考,具体看项目 <dependency> <grouId>org.apache.cxf</grouId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>3.1.6</vers
WebService:WebService+Springboot常用注解
摘要:首先推荐webservice文章不错的博主:https://www.iteye.com/blog/yufenfei-1685249 这位博主主要讲了WebService的CXF的jar包运用,很实用 @WebService 1、serviceName: 对外发布的服务名,指定 Web Service
SpringCloud:Eureka注册中心设置显示IP路径
摘要:未设置下的Eureka平台 可以看到Status显示的是 计算机名称! 解决方法: 在每一个需要注册的服务配置内加上如下几行配置 instance: prefer-ip-address: true #true表示使用ip地址注册 instance-id: user-server #指定服务的id(S