servlet.service() for servlet [dispatcherservlet] in context with path []

Sevlet .service()for servlet [dispatcherServlef] in context with path [| threw exception [Request processing failed; nested exception iorg.springframework.web.client.ResourceAccessException:/0 error on GET request for"htt.:llocalhost8081.user1": Connectionrefused: connect, nested exception is java.net.ConnectException: Connection refused: connect] with root cause
java.net.ConnectException: Connection refused: connect
是因为: Servlet.service服务(对于路径为[的上下文中的servlet[dispatcherServlet),引发了异常[请求处理失败;嵌套异常为java.lang.NullPointerException]有根本原因

说明是上面url引发的错误(可能url不存在,所跳转的url可能与web项目的root路径(一般是项目名)冲突);所以检查自己的url是否配对噢。

posted @ 2024-02-28 18:55  stdxxd  阅读(632)  评论(0)    收藏  举报