我第一次用postman测接口
url:http://localhost:8080/hhv2/interface/getMyRolls
输入:{
"head": {
"deviceId":"deviceId",
"os":1,
"token":"",
},
"body":{
"rows": "10", "page":"10", "type":"1", }
}
然后send 就报404错误是哪错了?
.code { border: 1px solid #ccc; background: #efefef; font-size: 16px; } .propNS { color: #660E7A } .propTag { color: #000080 } .propName { color: #0000ff; } .propValue{ color: #008000 }
404 error!请求地址有误!
请参照下面的步骤检查你的项目。
代码生成前,配置相关文件
bussi_package= com.buss // 生成代码的包前缀
<
context :component-scan base-package= "com.buss.*"> < context :exclude-filter type= "annotation" expression="org.springframework.stereotype.Service" />
context :component-scan>
<
context :component-scan base-package= "com.buss.*"> < context :exclude-filter type= "annotation" expression="org.springframework.stereotype.Controller" />
context :component-scan>
http404,那就是说明页面未找到,因此请确认页面测试地址。