上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 232 下一页
摘要: 读取txt文件乱码 Java代码 1.BufferedReader read = new BufferedReader(new FileReader(new File(filename))); 解决办法: Java代码 1.InputStreamReader isr = new InputStrea 阅读全文
posted @ 2020-12-21 23:16 牧之丨 阅读(299) 评论(0) 推荐(0)
摘要: 作者:tomas家的小拨浪鼓链接:https://www.jianshu.com/p/8fe70d313d78来源:简书 本文是笔者和朋友(笔名:oojeek)一起讨论该问题的一个记录。文章以讨论过程中的思路来展现(也是我们解决问题的思路路线),因此可能会有些乱。再者,如果对Netty写数据流程不了 阅读全文
posted @ 2020-12-21 16:24 牧之丨 阅读(922) 评论(0) 推荐(0)
摘要: ChannelInboundHandlerAdapter和SimpleChannelInboundHandler是我们在使用Netty处理Handler时候很常用的两个继承类,虽然说二者实现的功能大致相同但是在一些细节上还是有很多不同的,本文主要来讲一下两者的不同。。。 ChannelInbound 阅读全文
posted @ 2020-12-20 23:23 牧之丨 阅读(1188) 评论(0) 推荐(0)
摘要: 近日在使用Netty框架开发程序中出现了内存泄露的问题,百度加调试了一番,做个整理。 直接看解决方法请移步Netty内存泄漏解决ERROR io.netty.util.ResourceLeakDetector - LEAK: ByteBuf.release() was not called befo 阅读全文
posted @ 2020-12-20 11:41 牧之丨 阅读(3286) 评论(0) 推荐(0)
摘要: 错误信息 在使用Netty构建Server服务器的时候,之前用得好好的,最近整理了一下就出现了以下错误: WARN (AbstractChannelHandlerContext.java:294)- An exception 'java.lang.NullPointerException' [ena 阅读全文
posted @ 2020-12-20 11:39 牧之丨 阅读(12891) 评论(1) 推荐(1)
摘要: 1、问题描述 项目中使用了lombok,但是在idea编译过程是出现找不到符号。报错如下图所示: file @Data @ApiModel(value = "HeadTeacherVO", description = "设置班主任对象") public class HeadTeacherVO imp 阅读全文
posted @ 2020-12-19 00:07 牧之丨 阅读(2871) 评论(1) 推荐(1)
摘要: 用maven打成jar包后,Main.class.getClassLoader().getResource("")为null。 示例: public static void main(String[] args) { System.out.println(Main.class.getResource 阅读全文
posted @ 2020-12-18 23:44 牧之丨 阅读(835) 评论(0) 推荐(0)
摘要: yml:myProps: varmaplist: key11: - t1 - t2 - t3 key22: - t11 - t22 - t33 list: - topic1 - topic2 - topic3 maps: {key1: 'value1', key2: 'value2'} MyProp 阅读全文
posted @ 2020-12-18 14:37 牧之丨 阅读(1228) 评论(0) 推荐(0)
摘要: <plugin> <groupId>org.xolstice.maven.plugins</groupId> <artifactId>protobuf-maven-plugin</artifactId> <version>0.5.1</version> <configuration> <protoc 阅读全文
posted @ 2020-12-15 01:07 牧之丨 阅读(186) 评论(0) 推荐(0)
摘要: 在branch1开发,进行多个提交,这是切换到branch2,想把之前branch1分支提交的commit都【复制】过来,怎么办? 首先切换到branch1分支,然后查看提交历史记录,也可以用sourceTree查看,也可以用命令git log 例如我的git log 如下: commit1 xxx 阅读全文
posted @ 2020-12-14 20:04 牧之丨 阅读(2947) 评论(0) 推荐(0)
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 232 下一页