Programmatically change http response status using spring 3 restful

前端 未结 4 1285
伪装坚强ぢ
伪装坚强ぢ 2021-01-12 15:46

I have a controller like below

@Controller(\"myController\")
@RequestMapping(\"api\")
public class MyController {

     @RequestMapping(method = RequestMetho         


        
4条回答
  •  情深已故
    2021-01-12 16:31

    You can use an Aspect for your API. If you define an @Around interceptor for your service, you can change the response content.

提交回复
热议问题