You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@RestController
@RequestMapping("/hello")
public class HelloController {
/**
* world
* @return
*/
@GetMapping("/world")
public ResultVo<AppVersion> world(){
AppVersion appVersion = new AppVersion();
return ResultVoBuilder.success(appVersion);
}
}
类ResultVo
@Data
public class ResultVo<E> {
private int code;
private String message;
private E data;
private List<E> list;
private List<String> list2;
}
类HelloController
类ResultVo
类AppVersion
生成结果如下;字段list应该为数组,但生成的json为对象
The text was updated successfully, but these errors were encountered: