Loading

摘要: 今天看jdk源码的时候发现BufferedReader中实现了closeable接口,但是在重写其close接口时没有加上@Override注解, 查了一下网上的资料原来是@Override注解是在jdk1.5出现的,但是BufferedReader是从jdk1.1出现的,所以老代码中是没有这个注解 阅读全文
posted @ 2021-03-17 10:35 luwanglin 阅读(106) 评论(1) 推荐(0) 编辑
摘要: useradd命令 首先看一下这个命令的参数 选项: -b, --base-dir BASE_DIR 新账户的主目录的基目录 -c, --comment COMMENT 新账户的 GECOS 字段 -d, --home-dir HOME_DIR 新账户的主目录 -D, --defaults 显示或更 阅读全文
posted @ 2020-12-08 21:50 luwanglin 阅读(930) 评论(0) 推荐(0) 编辑
摘要: class Solution { public int[] searchRange(int[] nums, int target) { int[] result = new int[]{-1, -1}; if (nums.length == 0) { return result; } //假设先找左 阅读全文
posted @ 2020-12-03 10:14 luwanglin 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 问题出现: 当消费者客户端调用提供者的服务时,会出现以下错误,调用方出现以下错误 2020-11-27 17:03:51.996 ERROR 11536 [p-nio-80-exec-5] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service 阅读全文
posted @ 2020-11-27 17:35 luwanglin 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 环境情况,MySQL版本如下: 报错情况如下(看上去是和数据库有关): com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully 阅读全文
posted @ 2020-11-24 22:56 luwanglin 阅读(2814) 评论(0) 推荐(1) 编辑
摘要: 在配置文件中 dubbo.scan.base-packages=com.luwanglin.provider.service 关于包名一定不能写错 在使用注解注册服务时,老版本使用的是 org.apache.dubbo.config.annotation.Service,而新版本使用的是@Dubbo 阅读全文
posted @ 2020-11-21 17:25 luwanglin 阅读(468) 评论(0) 推荐(0) 编辑
摘要: dubbo-admin 2.0安装部署 1、下载dubbo-admin服务器版本 2、上传至服务器, 并解压 tar -zxvf xxxx.tar.gz 3、进入解压后的目录 4、默认启动8080端口, 可能会存在冲突,(如果zookeeper的启动不在本地,记得将以下中的ip端口号改成你自己的) 阅读全文
posted @ 2020-11-21 11:06 luwanglin 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 原文地址:https://juejin.im/post/6844904083694813192 主要添加了自己在部署过程中出现的问题,提供了相应的解决方案,关于内网如何部署ArtiPub的相关记录 一文多发神器--ArtiPub&OpenWrite 网上冲浪的时候,发现一篇文章,「群晖搭建ArtiP 阅读全文
posted @ 2020-11-06 21:42 luwanglin 阅读(581) 评论(0) 推荐(0) 编辑
摘要: druid中整合日志系统 <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j</artifactId> <version>2.13.3</version> </dependency> 以上是IDEA提示 阅读全文
posted @ 2020-10-30 11:48 luwanglin 阅读(3135) 评论(0) 推荐(0) 编辑
摘要: 对于thymeleaf中的重定向的跳转时,比如下面的登出注销之后跳转到首页 @RequestMapping("/usr/logout") public String logout(HttpSession session) { session.invalidate(); return "redirec 阅读全文
posted @ 2020-10-28 17:57 luwanglin 阅读(1763) 评论(0) 推荐(0) 编辑