SpringBoot关闭security认证

1. pom.xml中注释关于security的引用




2. 启动类中注释相关注解
@SpringBootApplication
//@EnableOAuth2Sso
@EnableRedisHttpSession
//@EnableResourceServer
3. 配置文件中注释相关配置
#security.oauth2.client.access-token-uri=http://localhost:17000/oauth/token
#security.oauth2.client.user-authorization-uri=http://localhost:17000/oauth/authorize
#security.oauth2.client.client-id=client
#security.oauth2.client.client-secret=secret
#security.oauth2.resource.user-info-uri=http://localhost:17000/oauth/userInfo

你可能感兴趣的:(JAVA基础,spring,boot)