为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

墨色风雨 2019-03-01 10:44:35
Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Server version: Apache Tomcat/7.0.79Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Server built: Jun 26 2017 16:25:20 UTCJul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Server number: 7.0.79.0Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: OS Name: Mac OS XJul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: OS Version: 10.12.5Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Architecture: x86_64Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Java Home: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jreJul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: JVM Version: 1.7.0_80-b15Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: JVM Vendor: Oracle CorporationJul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: CATALINA_BASE: /Users/kinshisakai/workspace/java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: CATALINA_HOME: /Library/TomcatJul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Command line argument: -Dcatalina.base=/Users/kinshisakai/workspace/java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Command line argument: -Dcatalina.home=/Library/TomcatJul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Command line argument: -Dwtp.deploy=/Users/kinshisakai/workspace/java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebappsJul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Command line argument: -Djava.endorsed.dirs=/Library/Tomcat/endorsedJul 27, 2017 3:51:00 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Command line argument: -Dfile.encoding=GBKJul 27, 2017 3:51:00 PM org.apache.catalina.core.AprLifecycleListener lifecycleEventINFO: 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 initINFO: Initializing ProtocolHandler ["http-bio-8090"]Jul 27, 2017 3:51:00 PM org.apache.coyote.AbstractProtocol initINFO: Initializing ProtocolHandler ["ajp-bio-8009"]Jul 27, 2017 3:51:00 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 938 msJul 27, 2017 3:51:00 PM org.apache.catalina.core.StandardService startInternalINFO: Starting service CatalinaJul 27, 2017 3:51:00 PM org.apache.catalina.core.StandardEngine startInternalINFO: Starting Servlet Engine: Apache Tomcat/7.0.79Jul 27, 2017 3:51:01 PM org.apache.coyote.AbstractProtocol startINFO: Starting ProtocolHandler ["http-bio-8090"]Jul 27, 2017 3:51:01 PM org.apache.coyote.AbstractProtocol startINFO: Starting ProtocolHandler ["ajp-bio-8009"]Jul 27, 2017 3:51:01 PM org.apache.catalina.startup.Catalina startINFO: Server startup in 434 ms 这是控制台中的日志,可在浏览器中访问127.0.0.1:8090就会出405错。
查看完整描述

1 回答

?
饮歌长啸

TA贡献1951条经验 获得超3个赞

得看一下 默认请求的页面 后端代码时怎么写的

查看完整回答
反对 回复 2019-03-01
  • 1 回答
  • 0 关注
  • 694 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信