浏览代码

Merge branch '5.7.x' into 5.8.x

Closes gh-12126
Josh Cummings 2 年之前
父节点
当前提交
6622e0135a

+ 1 - 0
config/src/main/java/org/springframework/security/config/SecurityNamespaceHandler.java

@@ -102,6 +102,7 @@ public final class SecurityNamespaceHandler implements NamespaceHandler {
 		if (parser == null) {
 			// SEC-1455. Load parsers when required, not just on init().
 			loadParsers();
+			parser = this.parsers.get(name);
 		}
 		if (parser != null) {
 			return parser.parse(element, pc);