SpringBoot中Controller参数与返回值总结 注解 类注解一律使用@RestController,方法注解是实际情况而定。 返回值 SpringBoot在实际后端开发中一般要为前端提供的数据是以json格式返回,其返回值类型我们大多采用以下方式 public Map<String, Object> function() { Map<String, Object> modelMap = new