代码改变世界

idea启动springboot时报:An incompatible version [1.2.12] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]

2020-10-08 11:33  猎手家园  阅读(1602)  评论(0编辑  收藏  举报

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目录下。