@RestController = @ResponseBody + @Controller
但是为什么我看到有些项目 class头上写了@RestController 但是方法头上还写@ResponseBody ?
收起
那就是写重复了,不过不影响的。两处有一处就可以了。
报告相同问题?