SpringBoot2.0啓動日誌中出現The APR based Apache Tomcat Native library which allows optimal performance in

在啓動SpringBoot程序當中,日誌記錄當中有下面一條記錄:java


The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: 
[C:\Program Files\Java\jdk1.8.0_131\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Python36\Scripts\;C:\Program Files\Python36\;
C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
C:\Program Files\Java\jdk1.8.0_131\bin;C:\Program Files\Java\jdk1.8.0_131\jre\bin;
C:\My Program Files\apache-maven-3.3.9\bin;C:\Program Files\MySQL\MySQL Utilities 1.6\;
C:\My Program Files\erl9.0\bin;C:\My Program Files\rabbitmq_server-3.6.10\sbin;
C:\My Program Files\rabbitmq_server-3.6.10\ebin;C:\Program Files\TortoiseSVN\bin;
C:\My Program Files\Git\cmd;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;
web

C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Python36\Scripts;;.]apache

經研究發現,是系統當中缺乏文件,這兩個文件的做用是:後端

1.Tomcat能夠使用Apache Portable Runtime(APR)提供優越的可伸縮性、性能和更好的與本地服務器技術的集成。tomcat

Apache Portable Runtime是一個具備高度的可移植性庫的核心是Apache HTTP Server 2. x。服務器

APR有許多用途,包括訪問高級IO功能(如sendfile epoll和OpenSSL),操做系統級別的功能(隨機數生成、系統狀態等),網絡

和本地流程處理(共享內存,NT管道和Unix套接字)。這些特性能夠使Tomcat通用網絡服務器,將使更好的與其餘本地web技術,maven

集成和總體讓Java更可行的爲一個網絡服務器平臺的成熟而不是簡單的後端技術。性能

2.提高比較多的是對ssl的處理效率,當tomcat處理https的請求是,若是使用本地的openssl庫,確定會比前面提高的效率高。spa

如何處理

1.打開http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.2.14/binaries/,點擊下載。


2.下載下來的文件解壓出來,假如電腦是64位的(如今的電腦基本都是),按照下圖選擇


3.打開文件夾,複製裏面的兩個文件,到C:\Windows\System32裏面去



4.從新啓動程序,發現啓動一切正常