An incompatible version [1.2.7] of the APR based Apache Tomcat Native library is installed

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文件

An incompatible version [1.2.7] of the APR based Apache Tomcat Native library is installed_第1张图片
4.
然后,此时一顿操作,拷贝这个文件
立马就去覆盖掉C:\Windows\System32下的原tcnative-1.dll文件!

An incompatible version [1.2.7] of the APR based Apache Tomcat Native library is installed_第2张图片
5.完成!

你可能感兴趣的:(springboot,各种报错,IDEA)