work hard work smart

专注于Java后端开发。 不断总结,举一反三。
随笔 - 1158, 文章 - 0, 评论 - 153, 阅读 - 186万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

04 2019 档案

摘要:Kind.ENTRY 入口,默认值 Kind.RETURN: 返回 Kind.THROW: 异常 Kind.Line: 行 一、返回时拦截 2、运行和返回结果 1)、运行 2)、调用接口: http://127.0.0.1:8080/monitor_tuning/ch4/arg1?name=nick 阅读全文

posted @ 2019-04-25 16:52 work hard work smart 阅读(161) 评论(0) 推荐(0) 编辑

摘要:拦截方法: 1、普通方法 @OnMethod(clazz="", method="") 2、构造函数@OnMethod(claszz="", method="<init>") 3、拦截同名函数,用参数区分 一、拦截构造函数 1、创建接口 2、测试接口 http://127.0.0.1:8080/mo 阅读全文

posted @ 2019-04-25 16:18 work hard work smart 阅读(398) 评论(0) 推荐(0) 编辑

摘要:一、Btrace简介 BTrace可以动态的向目标应用程序的字节码注入追踪代码 用到的技术JavaComplierApi,JVMTI,Agent,Instrumentation+ASM 二、Btrace安装 1、下载 Btrace的Github地址 https://github.com/btrace 阅读全文

posted @ 2019-04-25 14:52 work hard work smart 阅读(415) 评论(0) 推荐(0) 编辑

摘要:1、Dubbo和Spring Cloud区别 1)、通信方式不同 Dubbo使用RPC通信,Spring Cloud使用Http RestFul方式 2) 组成部分不同 组件 Dubbo Spring Cloud 服务注册中心 Zookeeper Spring Cloud Netflix Eurek 阅读全文

posted @ 2019-04-25 09:48 work hard work smart 阅读(146) 评论(0) 推荐(0) 编辑

摘要:一、下载源码 下载2.6.0的源码 https://github.com/apache/incubator-dubbo/releases/tag/dubbo-2.6.0 二、使用Eclipse打开dubbo-admin 然后run As -> Maven install 安装成功后,导出War文件。 阅读全文

posted @ 2019-04-24 18:52 work hard work smart 阅读(1414) 评论(0) 推荐(0) 编辑

摘要:开发工具:Eclipse,项目结构如下 模块介绍: DubboAPI API接口 DubboConsumer 消费者 DubboProvider 生产者 DubboAPI Service 提供的接口,DubboProvider实现了 DubboAPI 接口,并对外开放http端口,DubboCons 阅读全文

posted @ 2019-04-24 15:28 work hard work smart 阅读(195) 评论(0) 推荐(0) 编辑

摘要:解决办法: 两个jar包会循环引用导致内存溢出。解决的办法就是将两个jar包其中一个的依赖移除掉 阅读全文

posted @ 2019-04-23 15:38 work hard work smart 阅读(1384) 评论(0) 推荐(0) 编辑

摘要:一、安装Zookeeper 参考: Zookeeper的下载、安装和启动 Zookeeper 集群搭建--单机伪分布式集群 二、下载Kafka 进入http://kafka.apache.org/downloads 我这里使用版本:kafka_2.11-1.0.1.tgz 三、Kafka目录 解压到 阅读全文

posted @ 2019-04-22 16:00 work hard work smart 阅读(982) 评论(0) 推荐(0) 编辑

摘要:Spring Boot 版本: 1.5.20 一、Spring Boot Admin Server 1、在pom.xml中增加 2、增加注解 修改端口为8000 3、启动 二、Spring Boot Client 1、pom.xml 增加 在application.yml配置文件中配置 可以发现有一 阅读全文

posted @ 2019-04-18 16:05 work hard work smart 阅读(302) 评论(0) 推荐(0) 编辑

摘要:在application-dev.yml增加配置 配置文件的路径为 rescoures/evn/dev/logback-spring.xml 阅读全文

posted @ 2019-04-17 16:19 work hard work smart 阅读(311) 评论(0) 推荐(0) 编辑

摘要:接口中带有中文,tomcat8 解决方法: 在tomcat下的conf/context.xml 阅读全文

posted @ 2019-04-17 13:42 work hard work smart 阅读(1569) 评论(0) 推荐(0) 编辑

摘要:Spring Boot版本 1.5 @ControllerAdvice public class GlobalExceptionHandler extends ResponseEntityExceptionHandler{ @ExceptionHandler(value = Exception.class) @ResponseBody public String js... 阅读全文

posted @ 2019-04-15 16:28 work hard work smart 阅读(225) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示