zoukankan      html  css  js  c++  java
  • 项目启动时报错实体类找不到

    报错原因:@ApiModel(value="userVO")            dataType = "UserVO"          两个名称不一致,导致没有对应起来,首字母一个大写,一个小写

    解决方法:接口中的    dataType = "UserVO"   的dataType 的值

                      和实体类的    @ApiModel(value="UserVO")   的value的值要一致

    @ApiModel(value="UserVO")
    public class UserVO {}
    
    
    
    @ApiOperation(value = "获取用户信息", notes = "获取用户信息")
        @ApiImplicitParams({
                @ApiImplicitParam(name = "userVO", value = "用户参数", required = false, dataType = "UserVO", paramType = "body"),
                @ApiImplicitParam(name = "Accept", value = "接收属性", required = true, dataType = "String", paramType = "header", defaultValue = "application/json"),
                @ApiImplicitParam(name = "Accept-Charset", value = "接收字符集", required = true, dataType = "String", paramType = "header", defaultValue = "utf-8"),
                @ApiImplicitParam(name = "Content-Type", value = "内容类型", required = true, dataType = "String", paramType = "header", defaultValue = "application/json; charset=UTF-8") })
        @RequestMapping(value = "/org/user", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
        @InterfaceApiLabel(value = "001", description = "获取用户信息")
        public List mergeUser(@RequestBody UserVO userVO, @RequestHeader HttpHeaders headers) {
            return null;
        }
  • 相关阅读:
    POJ 1003 解题报告
    POJ 1004 解题报告
    POJ-1002 解题报告
    vi--文本编辑常用快捷键之光标移动
    常用图表工具
    September 05th 2017 Week 36th Tuesday
    September 04th 2017 Week 36th Monday
    September 03rd 2017 Week 36th Sunday
    September 02nd 2017 Week 35th Saturday
    September 01st 2017 Week 35th Friday
  • 原文地址:https://www.cnblogs.com/wueryuan/p/12916850.html
Copyright © 2011-2022 走看看