![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug收集
非人类_
收藏bug
展开
-
NIO客户端主动关闭连接,导致服务器空轮询
当客户端连接关闭时,服务器select()不会阻塞,然后一直分发读就绪操作。 public static void main(String[] args) throws IOException { ServerSocketChannel serverSocketChannel = ServerSocketChannel.open(); // 配置为非阻塞 ...原创 2019-01-13 17:57:07 · 1647 阅读 · 0 评论 -
maven打包springboot项目运行提示jar中没有主清单属性
当我照着Spring Boot的开发手册上写hello world练习时,使用maven打包springboot项目运行提示jar中没有主清单属性。 出错原因:Spring Boot的maven依赖使用错了。 使用的依赖是自己在maven上找的spring-boot-starter-web,代替了spring-boot-starter-parent这个parent POM。以下是正确打包! p...原创 2019-01-21 16:49:00 · 2702 阅读 · 1 评论 -
idea中tomcat控制台输出中文乱码问题的解决
在idea的安装目录下的bin/idea.exe.vmoptions文件添加-Dfile.encoding=UTF-8 bin/idea64.exe.vmoptions文件添加-Dfile.encoding=UTF-8转载 2019-02-18 15:10:52 · 3813 阅读 · 0 评论 -
SpringBoot的继承WebMvcConfigurationSupport,转发请求Cannot resolve view name
问题 这是测试的代码 @Configuration public class WebMvcConfig extends WebMvcConfigurationSupport { @Override protected void addViewControllers(ViewControllerRegistry registry) { // 设置转发到success...原创 2019-05-03 10:35:49 · 821 阅读 · 0 评论 -
win10环境上 [DUBBO] Could not get local host ip address, will use 127.0.0.1 instead
查看自己的计算名和管理员用户名是否一样。 计算机名 右键我的电脑 点击属性 计算机用户 在C盘的C:\Users Dubbo取hostname,然后在hosts中没有匹配到相应的ip的话,就会报错 ...原创 2019-06-02 20:28:31 · 1323 阅读 · 0 评论