在idea中clone了一个项目,但运行的时候一直提示404,能打开tomcat的主页面,但是翁当页面也都是404,另外,我在tomcat的webapps目录下没有现在运行的目录。在控制台中有这样一条信息:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
1.主要原因是没有配置APR的库,具体可以参考一下Apache Portable Runtime (APR) based Native library for Tomcat
2.解决方法是安装加上配置,可以参考mac os 下tomcat apr 警告解决方法
3.或者干脆禁用,修改文件TOMCAT/conf/server.xml: