像这样接口开发平台怎么设计呀?
我使用springboot开发的,用controller提供rest接口,那接口计费、接口调用次数统计、能否调用接口、调用qps、调用白名单等等是不是可以通过aop切面去做呀。我只想到这种解决方案。
@RestController
@RequestMapping("/api")
public class HelloController {
@Log
@AppKey
@WhiteList
@AccessLimit()
@GetMapping("/sayHello")
public Object sayHello(){
return "Hello World";
}
}