赞
踩
SpringBoot项目中只要引入了spring-boot-starter-security包,默认就已经开启了权限认证。
这么几种方式可以解决:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-ldap</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
</dependency>
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class})
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。