不需要重新启动啊。实现FilterInvocationSecurityMetadataSource 这个接口的时候不是有个loadResourceDefine()方法么。你在配置了角色后,调用一下loadResourceDefine()这个方法,重新载入新的权限配置,就OK啦。