@RequiresPermissions在controller上不起作用,在我的代码中是由于fillter是在spring容器中,而不是在springmvc容器中,所以不起作用,把@RequiresPermissions注解挪到service中就可以了。