假设我有以下方法:
/** Account Types */
@ResponseBody
@Secured("ROLE_AccountTypes")
@RequestMapping(value = "/accountTypes", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public List<T> getAccountTypes() {
return accountSrv.getAccountTypes();
}
现在我想以编程方式将方法的注释放在自定义注释中。怎么可能?