Springboot中tomcat問題
報錯如下
:
ERROR 119656 — [ main] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.2.7] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
字面意思就是當前版本爲1.2.7,需要重新下載1.2.14以上版本。分析SpringBoot的tomcat爲內置環境,所以將新版本文件放在java安裝目錄下即可。
解決辦法:
1.下載對應版本文件,鏈接如下:
http://archive.apache.org/dist/tomcat/tomcat-connectors/native/
2.解壓後,在bin目錄下找到tcnative-1.dll文件
我springboot環境爲win10,64位系統,選擇了x64文件下的dll文件
4.
然後,此時一頓操作,拷貝這個文件
立馬就去覆蓋掉C:\Windows\System32下的原tcnative-1.dll文件!
5.完成!