HashMap的容量一定是2的整数幂

pull/711/head
xiongjh 2021-12-21 11:42:29 +08:00
parent 7c29283377
commit 3d2d990127
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
}
private Map<String, Set<String>> getAnonymousUrl(Map<RequestMappingInfo, HandlerMethod> handlerMethodMap) {
Map<String, Set<String>> anonymousUrls = new HashMap<>(6);
Map<String, Set<String>> anonymousUrls = new HashMap<>(8);
Set<String> get = new HashSet<>();
Set<String> post = new HashSet<>();
Set<String> put = new HashSet<>();