tomcat启动出现The APR based Apache Tomcat Native library错误
今天在idea中直接启动springboot项目时,出现以下错误:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
:
先检查自己使用的tomcat的bin目录下是否有tcnative-1.dll文件,如果有先不考虑版本直接复制一份到C:\Windows\System32\目录下,然后再启动。
此时由于版本号可能存在问题,会接着出现以下类似的错误
Loaded APR based Apache Tomcat Native library [1.2.14] using APR version [1.6.2].
这个时候我们就要去下载对应的版本了,下载地址:http://archive.apache.org/dist/tomcat/tomcat-connectors/native/