« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 1084 ms

boot项目运行后,无法进行post接口的测试 · Issue #166 · APIJSON/APIJSON

Source: https://github.com/APIJSON/APIJSON/issues/166

Repository navigation

boot项目运行后,无法进行post接口的测试  #166


New issue

New issue

Open

Open
boot项目运行后,无法进行post接口的测试 #166 Labels
Question 使用问题

Description

@dxmy2's profile dxmy2 opened on Dec 2, 2020

环境信息

  • 系统: Windows 10
  • JDK: 1.8.0_271
  • 数据库: MySQL 8.0.21
  • APIJSON: 2.9.1

问题描述

在http://apijson.org/auto/上进行测试时,先调用http://localhost:8080/login进行登录,登录信息为
{
"phone": "13000038710",
"password": "666666"
}
登录是成功的,之后切换为http://localhost:8080/post,新增信息为
{
"Moment": {
"content": "This is My_Test !",
"userId": 38710
},
"tag": "Moment"
}
会报错,报错信息为下,想问下原因以及解决办法。
错误信息
{
"Moment": {
"content": "This is My_Test !" ,
"userId": 38710
},
"tag": "Moment" ,
"ok": false ,
"code": 407 ,
"msg": "未登录,请登录后再操作!"
}

Metadata

Metadata

Assignees

No one assigned

    Labels


    Question 使用问题

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions