Spring cloud 中关于 java.net.Inet6AddressImpl.getHostByAddr(Native Method)

2018-10-05 17:57:57.505 [localhost-startStop-1] WARN  org.apache.catalina.loader.WebappClassLoaderBase - 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$77/732613938.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:1149)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 java.lang.Thread.run(Thread.java:748)
Disconnected from the target VM, address: '127.0.0.1:54362', transport: 'socket
--------------------- 

如果出现上面的错误,先检查@Value是否设置正确,例如:

@Value("${download.limit.rows.member")
private Integer downloadLimitRows;

这里缺少了 } ,所以就会有上面的错误提示。
参考:https://blog.csdn.net/titanic_33/article/details/8294589

你可能感兴趣的:(视频教程)