Idea報錯:
An incompatible version [1.2.12] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
原因:tcnative-1.dll的版本不兼容
解決辦法:
下載相應的版本:http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.2.14/binaries/tomcat-native-1.2.14-win32-bin.zip
注意你的電腦是32位,還是64位。如果是64位系統,那么從里面找到"x64"這個文件夾,找到里面的tcnative-1.dll,將這個文件復制copy到:
(1)如果你的tomcat是安裝版,則復制到C:\Windows\System32下覆蓋掉tcnative-1.dll,然后重新啟動springboot項目即可。
(2)如果你的tomcat是解壓版,則要復制到你的tomcat的bin目錄下。
