Http 405错误

linbo_eman linbo_eman 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
在本地测的时候没有任何问题,但是放到线上就会提示这个,我有一个
[org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.handleHttpRequestMethodNotSupported(DefaultHandlerExceptionResolver.java:194)] - <Request method 'POST' not supported>
这是下发短信的方法


我在网上也搜过,都没有效果,望各位大神帮忙看一下,小弟感激不尽
以下是日志记录的信息:
2016-12-14 17:36:14,866 INFO [org.hibernate.validator.internal.util.Version.<clinit>(Version.java:27)] - <HV000001: Hibernate Validator 5.1.3.Final>
2016-12-14 17:36:15,781 INFO [org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:476)] - <FrameworkServlet 'spring': initialization completed in 1252 ms>
2016-12-14 17:36:20,373 INFO [com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getPoolManager(AbstractPoolBackedDataSource.java:462)] - <Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> vv3vz09k1y41juvbuj4p1|95e33cc, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> vv3vz09k1y41juvbuj4p1|95e33cc, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost:3306/youfu?characterEncoding=UTF-8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]>
2016-12-14 17:36:29,355 INFO [cn.orientdata.youfu.web.controller.OrderController.receiveOrder(OrderController.java:48)] - <接收订单信息:{"command":"1","policyBuyChannel":"UFMALL","policyOrderNum":"SP20161208999","policyOrderTime":"2016-12-01 15:22:19.0","policyType":"sportinsure","userIdCard":"","userMobile":"","userName":""}>
2016-12-14 17:36:29,358 INFO [cn.orientdata.youfu.web.service.OrderService.orderHandle(OrderService.java:228)] - <订购保险订单:{"command":"1","policyBuyChannel":"UFMALL","policyOrderNum":"SP20161208999","policyOrderTime":"2016-12-01 15:22:19.0","policyType":"sportinsure","userIdCard":"","userMobile":"","userName":""}>
2016-12-14 17:36:29,987 INFO [cn.orientdata.youfu.web.service.OrderService.dataToJson(OrderService.java:291)] - <rst:success,orderInfo:{"actualOrderNum":"","command":"1","over48Hour":"2","policyBuyChannel":"UFMALL","policyEffectiveDate":"","policyOrderNum":"","policyOrderTime":"2016-12-01 15:22:19.0","policyType":"sportinsure","state":"1","userIdCard":"","userMobile":"","userName":""}>
2016-12-14 17:36:30,017 WARN [org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.handleHttpRequestMethodNotSupported(DefaultHandlerExceptionResolver.java:194)] - <Request method 'POST' not supported>

...全文

相关推荐

http请求405错误方法不被允许的解决 (Method not allowed)

主要介绍了http请求405错误方法不被允许的解决 (Method not allowed),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

weixin_38655011

【项目实战】常见的HTTP状态码(405 - Method Not Allowed)

405 Method Not Allowed错误是HTTP协议中常见的状态码,表示客户端使用的请求方法不被服务器支持。该错误通常发生在以下情况:使用了服务器不支持的HTTP方法(如PUT/DELETE代替GET/POST)、服务器禁用了特定方法、服务器配置错误或跨域请求限制。解决方法包括检查请求方法是否正确、了解目标资源支持的方法、修改服务器配置或改用其他实现方式。与403/404不同,405错误特指HTTP方法不被允许,而非权限或资源存在问题。

本本本添哥

Nginx静态文件响应POST请求 提示405错误的解决方法

Apache、IIS、nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405 Method not allowed”错误

weixin_38500222

java解决405 - HTTP method GET is not supported by this URL

java解决405 - HTTP method GET is not supported by this URL

lj_70596

php采用curl访问域名返回405 method not allowed提示的解决方法

主要介绍了php采用curl访问域名返回405 method not allowed提示的解决方法,需要的朋友可以参考下

weixin_38607908
评论 6
收藏 已收藏
分享
返回顶部
linbo_eman
Web 开发 81,107 成员 341,720 内容