- 博客(5)
- 收藏
- 关注
原创 web项目添加本地jar
tomcat项目: 两个plugin <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> <!
2022-02-18 14:34:13
419
原创 BIO NIO学习笔记
BIO: blocking io 一个线程处理一个客户端连接和读写事件 缺点:效率低,浪费线程资源,一个线程只能处理一个连接 伪代码: ServerSocket serverSocket = new ServerSocket(8090); while (true){ Socket clientSocket = serverSocket.accept(); //阻塞,等待客户端连接 Byte[] bytes = new Byte[1024]; int n = clientSocket.getInputS
2021-12-20 00:16:41
247
原创 prometheus采集节点报context deadline exceeded
现象:在服务器上手动访问endpoint地址能返回指标页面,但是prometheus targets界面报context deadline exceeded 解决:增加了该容器的内存和cpu限额,重新生成pod后,再看targets界面,恢复正常 参考:https://blog.youkuaiyun.com/lyf0327/article/details/99971590 ...
2021-07-26 10:04:14
5816
原创 dubbo服务调用者调用@Reference的服务时,报空指针
背景是dubbo+springboot工程 问题:同一个controller里的两个方法,也就是暴露给前端的请求入口, 两个方法使用同一个业务层,比如reportService, 第一个方法正常 第二个方法报reportService空指针异常 如果你遇到这种情况,可以检查下controller这两个方法是不是都是public, 我的情况就是第二个方法写成了private ...
2019-09-17 16:11:46
1224
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人