该接口是Spring Security框架中的一个核心接口,用于表示授权信息。在项目中使用该接口,需要添加Spring Security的依赖。具体依赖版本可以根据项目的需求进行选择。例如,若使用Maven作为项目构建工具,则可以在pom.xml文件中添加以下依赖:

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-core</artifactId>
    <version>5.3.4.RELEASE</version>
</dependency>

这将会引入Spring Security 5.3.4.RELEASE版本的核心依赖,包括org.springframework.security.core.GrantedAuthority接口。

orgspringframeworksecuritycoreGrantedAuthority; 依赖

原文地址: https://www.cveoy.top/t/topic/cVB8 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录