mirror of https://github.com/elunez/eladmin
[代码优化](v2.6):修复添加actuator依赖后无法启动的Bug
close https://github.com/elunez/eladmin/issues/511pull/530/head
parent
80e1ba560a
commit
f56006f68d
|
@ -76,7 +76,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||||
@Override
|
@Override
|
||||||
protected void configure(HttpSecurity httpSecurity) throws Exception {
|
protected void configure(HttpSecurity httpSecurity) throws Exception {
|
||||||
// 搜寻匿名标记 url: @AnonymousAccess
|
// 搜寻匿名标记 url: @AnonymousAccess
|
||||||
Map<RequestMappingInfo, HandlerMethod> handlerMethodMap = applicationContext.getBean(RequestMappingHandlerMapping.class).getHandlerMethods();
|
RequestMappingHandlerMapping requestMappingHandlerMapping = (RequestMappingHandlerMapping) applicationContext.getBean("requestMappingHandlerMapping");
|
||||||
|
Map<RequestMappingInfo, HandlerMethod> handlerMethodMap = requestMappingHandlerMapping.getHandlerMethods();
|
||||||
// 获取匿名标记
|
// 获取匿名标记
|
||||||
Map<String, Set<String>> anonymousUrls = getAnonymousUrl(handlerMethodMap);
|
Map<String, Set<String>> anonymousUrls = getAnonymousUrl(handlerMethodMap);
|
||||||
httpSecurity
|
httpSecurity
|
||||||
|
|
Loading…
Reference in New Issue