早上启动项目报错
The web application [ROOT] appears to have started a thread named [spring.cloud.inetutils]
but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.net.Inet6AddressImpl.getHostByAddr(Native Method)
java.net.InetAddress$2.getHostByAddr(InetAddress.java:932)
java.net.InetAddress.getHostFromNameService(InetAddress.java:617)
java.net.InetAddress.getHostName(InetAddress.java:559)
java.net.InetAddress.getHostName(InetAddress.java:531)
org.springframework.cloud.commons.util.InetUtils$$Lambda$105/1932597611.call(Unknown Source)
java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
java.util.concurrent.FutureTask.run(FutureTask.java)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
Disconnected from the target VM, address: '127.0.0.1:14037', transport: 'socket'
Process finished with exit code 1
debug 到 SpringApplication.java 325行
catch 到报错原因:昨晚手滑,复制了一个@GetMapping("/**/**")
冲突了,所以今早回来启动的时候蚌埠住了
再此记录一下,防止以后再犯这样的低级错误。