
IDEA
pilaf1990
操千曲而后晓声,观千剑而后识器~
展开
-
IDEA Download Sources报错 Connection refused的解决方法
IntelliJ IDEA 2020.2.2 (Ultimate Edition)maven项目,.class文件点击Download sources的时候报错:java.rmi.ConnectException: Connection refused to host: 127.0.0.1把/etc/hosts文件(mac的hosts路径)中除了127.0.0.1 localhost::1 localhost之外的127.0.0.1或localhost的配置都去掉,重原创 2020-10-09 15:42:30 · 10084 阅读 · 2 评论 -
IDEA2018.1.6打开Scala文件decompiled.class file bytecode version50(java 6)解决
如下图所示,scala的源文件显示的反编译级别不对,attach source文件也没有用。查看了idea的scala插件,发现插件不兼容,于是从idea官网下载了一个2018.1.6的插件,官网地址:https://plugins.jetbrains.com/plugin/1347-scala安装后,重启idea,就可以看到源码了:...原创 2018-10-08 21:01:09 · 7144 阅读 · 2 评论 -
application.yml中使用@获取maven pom.xml properties运行单元测试报错问题
application.yml文件中用@@引用maven的pom.xml文件中的属性yml文件中的内容:server: port: @server_port@maven的pom.xml文件中的内容:<profiles> <profile> ... <properties> <se...原创 2019-01-28 17:19:47 · 7231 阅读 · 3 评论 -
IDEA中debug程序的时候不想进入某些包或者类的解决方法
在IDEA偏好中(Preferences->Build,Execution,Deployment->Debugger->Stepping)设置Do not step into the classes选项,增加要过滤的包或者类:参考链接:1.https://stackoverflow.com/questions/20575107/how-to-force-intellij-t...原创 2019-02-23 16:44:21 · 21706 阅读 · 1 评论 -
如何在IDEA中给源码中不存在的默认构造器打断点?
一个类源码中没有声明构造器,那么它会有一个默认构造器。那么问题来了,如果我想debug一下,看看这个默认构造器都在哪儿被调用了,要在默认构造器上打个断点(breakpoint)怎么办?按照IDEA官网上的说明:If you want to set a breakpoint in the default class...原创 2019-08-01 13:51:51 · 718 阅读 · 0 评论 -
IDEA中suppress warnings
有时候java类名没有遵循驼峰命名,其实也不是没有遵守,而是IDEA认为你没有遵守,或者它识别不出来我们定义的类名中的单词,然后就会有个波浪线提示你:Typo: In word …SpellChecker Inspection helps locate typos and misspelling in your code, comment and literals, and fix them ...原创 2019-08-06 11:00:46 · 3038 阅读 · 0 评论 -
Spring Boot maven插件debug
想在IDEA中用maven的spring-boot插件方式debug Spring Boot应用。Spring Boot项目的pom.xml文件中有<plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>...原创 2019-08-28 14:52:03 · 1590 阅读 · 1 评论