码迷,mamicode.com
首页 > 编程语言 > 详细

spring security跳过认证

时间:2018-10-09 15:00:55      阅读:883      评论:0      收藏:0      [点我收藏+]

标签:ram   ring   org   class   work   conf   autoconf   参数   configure   

在启动springboot的时候,给启动注解后添加这个exclude参数后接想要跳过的类就不会加载它了。

@SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class
})

spring security跳过认证

标签:ram   ring   org   class   work   conf   autoconf   参数   configure   

原文地址:https://www.cnblogs.com/goblinn/p/9760147.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!