@@ -103,11 +103,11 @@ GovernanceConfiguration getDynamicConfiguration() {
103103
104104 if (StringUtils .isNotEmpty (config )) {
105105 Arrays .stream (config .split ("\n " )).forEach ( s -> {
106- if (s .startsWith (Constants .REGISTRY_ADDRESS )) {
107- String registryAddress = s . split ( "=" )[ 1 ]. trim ( );
106+ if (s .startsWith (Constants .REGISTRY_ADDRESS )) {
107+ String registryAddress = removerConfigKey ( s );
108108 registryUrl = formUrl (registryAddress , registryGroup , registryNameSpace , username , password );
109109 } else if (s .startsWith (Constants .METADATA_ADDRESS )) {
110- metadataUrl = formUrl (s . split ( "=" )[ 1 ]. trim ( ), metadataGroup , metadataGroupNameSpace , username , password );
110+ metadataUrl = formUrl (removerConfigKey ( s ), metadataGroup , metadataGroupNameSpace , username , password );
111111 }
112112 });
113113 }
@@ -168,6 +168,13 @@ MetaDataCollector getMetadataCollector() {
168168 return metaDataCollector ;
169169 }
170170
171+ public static String removerConfigKey (String properties ) {
172+ String [] split = properties .split ("=" );
173+ String [] address = new String [split .length - 1 ];
174+ System .arraycopy (split , 1 , address , 0 , split .length - 1 );
175+ return String .join ("=" , address ).trim ();
176+ }
177+
171178 private URL formUrl (String config , String group , String nameSpace , String username , String password ) {
172179 URL url = URL .valueOf (config );
173180 if (StringUtils .isEmpty (url .getParameter (Constants .GROUP_KEY )) && StringUtils .isNotEmpty (group )) {
0 commit comments