原文链接 原文链接 原文链接 原因是SimpleGrantedAuthority的构造方法 Assert.hasText(String text) / hasText(String text, String message) text (权限名)不能为 null 且必须至少包含一个非空格的字符,否则抛出异常;