在使用springboot时发现idea启动时日志报的三个error,虽然不影响运行,但是也不想看到,强迫症,连警告都不想有的,更何况是ERROR,还飘红
![An incompatible version [1.2.12] of the Apache Tomcat Native library is installed, while Tomcat req_tomcat](https://file.cfanz.cn/uploads/png/2022/03/30/9/S0I4415724.png)
An incompatible version [1.2.12] of the Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
incompatible:就是说不匹配,不兼容的意思
解决办法:
到tomcat的链接地址,找对应的版本
http://archive.apache.org/dist/tomcat/tomcat-connectors/native/
找到版本,提示要1.2.14
地址:
http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.2.14/binaries/
下载
![An incompatible version [1.2.12] of the Apache Tomcat Native library is installed, while Tomcat req_spring_02](https://file.cfanz.cn/uploads/png/2022/03/30/9/XefUe14e72.png)
然后解压文件从里面找到"x64",找到里面的tcnative-1.dll
![An incompatible version [1.2.12] of the Apache Tomcat Native library is installed, while Tomcat req_tomcat_03](https://file.cfanz.cn/uploads/png/2022/03/30/9/2de8KAB900.png)
将其复制到路径下:C:\Windows\System32下,如果有就覆盖,我这里原本是没有的
![An incompatible version [1.2.12] of the Apache Tomcat Native library is installed, while Tomcat req_java_04](https://file.cfanz.cn/uploads/png/2022/03/30/9/8D39666H8U.png)
然后重新启动springboot项目即可
![An incompatible version [1.2.12] of the Apache Tomcat Native library is installed, while Tomcat req_spring_05](https://file.cfanz.cn/uploads/png/2022/03/30/9/K4318f15eL.png)









