我第一次用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!请求地址有误!
请参照下面的步骤检查你的项目。
代码生成前,配置相关文件
- 生成代码包的路径(jeecg_config.properties):
bussi_package=
com.buss // 生成代码的包前缀
- 代码生成界面的配置:
- 表名:
guoming_test;
- 包名:
guoming;
- 代码分层风格:
代码分层;
代码生成后,编辑配置文件
-
加载Controller(spring-mvc.xml)
<
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>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
http404,那就是说明页面未找到,因此请确认页面测试地址。