请问各位,我的tomcat在eclipse中启动正常,可为什么使用127.0.0.1的时候显示405错误

Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.79
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jun 26 2017 16:25:20 UTC
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.79.0
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Mac OS X
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.12.5
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86_64
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.7.0_80-b15
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /Users/kinshisakai/workspace/java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /Library/Tomcat
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/Users/kinshisakai/workspace/java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/Library/Tomcat
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=/Users/kinshisakai/workspace/java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/Library/Tomcat/endorsed
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=GBK
Jul 27, 2017 3:51:00 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/kinshisakai/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Jul 27, 2017 3:51:00 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8090"]
Jul 27, 2017 3:51:00 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 938 ms
Jul 27, 2017 3:51:00 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 27, 2017 3:51:00 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.79
Jul 27, 2017 3:51:01 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8090"]
Jul 27, 2017 3:51:01 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 27, 2017 3:51:01 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 434 ms

这是控制台中的日志,可在浏览器中访问127.0.0.1:8090就会出405错。

墨色风雨
浏览 695回答 1
1回答

饮歌长啸

得看一下 默认请求的页面 后端代码时怎么写的
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java