在github上抄了个oauth2 authorize server,但是调用时总是404

ilearn 2019-02-13 08:54:42
在github上抄了个oauth2 authorize server,根据他的说明去调用,我在eclipse里加入tomcat然后,在postman上把参数调用
http://localhost:8080/oauth/token ,然后post 参数,但是调用总是404,在github上问了作者,很过了差不多一星期,都没回复,像这种情况怎样解决?
我GOOGLE过怎样找到ECLIPSE项目的URL或者endpoint,但按他们的办法去做,试过没用

在postman上POST结果

<!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> /oauth/token</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/8.5.37</h3></body></html>
...全文
829 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ilearn 2019-02-18
  • 打赏
  • 举报
回复
Set-Cookie →JSESSIONID=A32E4DDD4D118D61782E316F55711FFD; Path=/; HttpOnly X-Content-Type-Options →nosniff X-XSS-Protection →1; mode=block Cache-Control →no-cache, no-store, max-age=0, must-revalidate Pragma →no-cache Expires →0 X-Frame-Options →DENY WWW-Authenticate →Basic realm="Realm" Content-Length →0 Date →Mon, 18 Feb 2019 09:01:47 GMT
ilearn 2019-02-18
  • 打赏
  • 举报
回复
出现了401 Unauthorized Time:362 ms Size:306 B 的错误
亲爱的Joe 2019-02-13
  • 打赏
  • 举报
回复
看不出问题,是不是你的项目部署出现问题了。404是找不到接口,所以应该是你没有部署成功吧

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧