问题:报错unable to establish loopback connection
问题
Caused by: java.io.IOException: Unable to establish loopback connection
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:101)
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:68)
at java.security.AccessController.doPrivileged(Native Method)
at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:170)
at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)
at java.nio.channels.Pipe.open(Pipe.java:155)
at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:127)
at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:155)
… 15 more
Caused by: java.net.ConnectException: Connection timed out: connect
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:457)
at sun.nio.ch.Net.connect(Net.java:449)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:647)
at java.nio.channels.SocketChannel.open(SocketChannel.java:189)
at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:130)
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:83)
… 23 more
复制代码
解决方案
关闭防火墙就好了!!!
关闭防火墙就好了!!!
关闭防火墙就好了!!!
问题:IDEA看不到编译后的target文件
问题
控制台提示编译成功,但左边视图没有显示target文件夹
解决方案
勾选show excluded files,问题就解决了
问题:严重占用CPU 长时间在90~100%
问题
编译代码或者运行服务时,idea占用大量的CPU
解决方案
关掉不必要的检查,代码检查没必要全部检查,很耗性能
file->settings->editor->inspections
问题:debugger启动tomcat 报错Address already in use: NET_Bind
问题
Error running 'tomcat8': Unable to open debugger port (127.0.0.1:1441): java.net.BindException "Address already in use: NET_Bind"
解决方案
对于端口占用的情况,解决方案无非以下几种:
- 找到是哪个服务占用了端口,如果这个服务不重要,关了这个服务就行;
- 如果这个服务重要,就改下我们自己的端口;
- 重启IDEA(网管三大绝招第一招);
- 重启电脑(网管三大绝招第二招);
- 重装电脑(网管三大绝招第三招);
链接:https://juejin.cn/post/7033628452204838920