【问题一】
问题还原:
spring boot maven 报错 connected to the target VM, address: ‘127.0.0.1:28481’, transport: ‘socket’
1.spring boot maven 报错 connected to the target VM, address: '127.0.0.1:28481', transport: 'socket'
**问题描述:**idea 直接运行 springbootAplication 启动类,无法启动web项目,也没有报错信息。
解决办法 :
1. 由于项目意外关闭,资源没有释放。结束系统的 java 进程。
2.引入依赖包。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
【问题二】
问题还原:
1.这是我使用Junit4测试所写的代码时爆的一个错, Connected to the target VM, address: '127.0.0.1:55606', transport: 'socket';
问题描述
原来Junit4中的测试方法的方法名首字母不能大写!!!
解决方案:
1 修改测试方法的方法名,`首字母小写`
【问题三】
问题还原
:
1. idea DEBUG报错:Connected to the target VM, address: ‘127.0.0.1:4405‘, transport: ‘socket‘
解决方案
:
1.查找出占用进程id,
2.杀死进程
cmd 输入
命令:
1.netstat -ano|findstr 4405
2.taskkill -f -pid 7986(7896为查询到的进程数)
【问题五】
问题还原:
1.Disconnected from the target VM, address: '127.0.0.1:62893', transport: 'socket'
问题描述:
网上说是由于 IDEA 与 Maven 的版本不兼容造成的上述问题
解决方案:
1.在网上看到说是不兼容问题,如果之前用的好好的,突然出现这个问题的话,可以按如下操作进行:
2.Maven Package->刷新按钮
【问题六】
问题还原:
java.lang.NoSuchMethodError: org.apache.hadoop.security.authentication.util.KerberosUtil.hasKerberosTicket(Ljavax/security/auth/Subject;)Z
Connected to the target VM, address: '127.0.0.1:56813', transport: 'socket'
问题描述:
缺少一个jar依赖包
解决方案:
添加hadoop-common的jar依赖包
<!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common -->
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.7.5</version>
</dependency>