上一页 1 2 3 4 5 6 7 8 9 ··· 44 下一页
摘要: import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; public static void main(String[] args) throws Interrupt 阅读全文
posted @ 2023-08-10 21:32 Mr_sven 阅读(33) 评论(0) 推荐(0) 编辑
摘要: import com.alibaba.dubbo.common.URL;import com.alibaba.dubbo.common.extension.ExtensionLoader;import com.alibaba.dubbo.registry.Registry;import com.al 阅读全文
posted @ 2023-08-06 21:50 Mr_sven 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 向注册中心写入路由规则: // 获取注册中心的扩展类 RegistryFactory registryFactory = ExtensionLoader.getExtensionLoader(RegistryFactory.c lass).getAdaptiveExtension(); // 获取注 阅读全文
posted @ 2023-08-06 11:45 Mr_sven 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1.开启容错后,动态配置里会添加一条容错的配置 2.当服务提供者调用超时,或者关闭服务提供者服务时,则返回null或者你设置的指定json 服务调用失败返回null 指定调用失败的返回结果 阅读全文
posted @ 2023-08-05 14:34 Mr_sven 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 服务提供者:user-service-provider 服务消费者:order-service-consumer 场景一:屏蔽消费者 1.屏蔽后会默认添加一条动态配置 2.发起请求后,提供者的服务默认会返回null 场景二:返回指定的json 1.给消费者新增屏蔽的动态配置 2.消费者无需屏蔽,开启 阅读全文
posted @ 2023-08-05 12:16 Mr_sven 阅读(3) 评论(0) 推荐(0) 编辑
摘要: springboot整合dubbo引入依赖(导入的2.6.2版本) <dependency> <groupId>com.alibaba.boot</groupId> <artifactId>dubbo-spring-boot-starter</artifactId> <version>0.2.0</ 阅读全文
posted @ 2023-08-03 21:54 Mr_sven 阅读(82) 评论(0) 推荐(0) 编辑
摘要: @ImportResource注解主要用于导入Spring的xml配置文件注册的Bean。 该注解只能使用配置类注解(@Configuration)或者组件注解(@Component)中使用,否则无效。 阅读全文
posted @ 2023-08-02 23:29 Mr_sven 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 参考地址 https://blog.csdn.net/qq_37846607/article/details/130683568 阅读全文
posted @ 2023-08-01 22:56 Mr_sven 阅读(29) 评论(0) 推荐(0) 编辑
摘要: windows版本 1.修改配置文件 # bind-address = "0.0.0.0:8088" [[graphite]] # Determines whether the graphite endpoint is enabled. # enabled = true # database = " 阅读全文
posted @ 2023-08-01 22:29 Mr_sven 阅读(73) 评论(0) 推荐(0) 编辑
摘要: jmeter -n -t [jmx file] -l [result file] -e -o [path to web report folder] jmeter 是命令名称 -n :non gui 启用cli模式 -t: 测试计划,jmx脚本名称,可以带路径。(默认路径是jmeter的bin路径。 阅读全文
posted @ 2023-08-01 21:55 Mr_sven 阅读(120) 评论(2) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 44 下一页