spring boot 启动时关于The APR based Apache Tomcat Native library的问题

在Windows中调试spring boot 2 应用时日志中出现下面信息:

[2018-08-04 16:19:29,335][INFO] [localhost-startStop-1] Caller+0	 at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:180)
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: 
[D:\Develop\JDK\JDK8\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program 
Files\Docker\Docker\Resources\bin;D:\Develop\JDK\JDK8\bin;D:\Develop\Maven\apache-maven-3.5.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\
Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Develop\gradle\gradle-4.9\bin;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA 
Corporation\PhysX\Common;D:\Develop\VCS\Git\cmd;D:\Develop\VCS\TortoiseGit\bin;D:\Develop\nodejs\;C:\Users\Max 
Woods\AppData\Local\Microsoft\WindowsApps;C:\Users\Max Woods\AppData\Roaming\npm;C:\Users\Max Woods\AppData\Local\Programs\Fiddler;.]

这里使用的是spring boot 2.0.4.RELEASE版,内嵌的 tomcat是8.5.32版。

关于APR的介绍:http://tomcat.apache.org/tomcat-8.5-doc/apr.html

如果只时调试,可以忽略该,但老是提示也不爽,解决的方法是将Windows版本的Tomcat Native Connector库文件tcnative-1.dll文件拷贝到windows\system32目录下即可,注意32位64位版本的问题。

下载(包含32及64位):Tomcat Native Connector 1.2

你可能感兴趣的:(Spring,Spring)