之前一直远程调试服务器。
Tomcat 40003端口
后来发现这个服务器的端口被关掉了。然后tomcat log 就在一直报Debugger failed to attach: handshake failed - connection prematurally closed。
所以解决版本基本上就是换个端口或者把远程调试关掉。
关掉的意思就是
#JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,address=40003,suspend=n,server=y"