idea新建springBoot项目,tomcat启动报错

An incompatible version [1.2.10] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]

初次使用IDEA新建springBoot项目

tomcat运行时出现以下错误:

idea新建springBoot项目,tomcat启动报错
解决方法:
http://archive.apache.org/dist/tomcat/tomcat-connectors/native/
访问上面的网页找到版本号为1.2.14的文件夹:
idea新建springBoot项目,tomcat启动报错
在binaries文件夹下找到对应的文件,我这里是需要tomcat-native-1.2.14-win32-bin.zip:
idea新建springBoot项目,tomcat启动报错
下载并解压完成后根据自己使用JDK和TOMCAT版本,选择对应32位或者64位 tcnative-1.dll 文件,复制到JDK 的bin目录下即可:
idea新建springBoot项目,tomcat启动报错
此时重新运行项目即可。