Commit 18557164 authored by Bill Wang's avatar Bill Wang
Browse files

fix type

parent 164bd839
...@@ -69,8 +69,9 @@ public class ElasticSettingServiceImpl implements IElasticSettingService { ...@@ -69,8 +69,9 @@ public class ElasticSettingServiceImpl implements IElasticSettingService {
host = provider.getParameterAsString(hostParameter); host = provider.getParameterAsString(hostParameter);
port = Integer.parseInt(provider.getParameterAsString(portParameter)); port = Integer.parseInt(provider.getParameterAsString(portParameter));
Type mapType = new TypeToken<Map<String, String>>(){}.getType(); Type mapType = new TypeToken<Map<String, String>>(){}.getType();
Map<String, String[]> val = new Gson().fromJson(provider.getParameterAsString(elasticCredentialsSecret), mapType); Map<String, String> val = new Gson().fromJson(provider.getParameterAsString(elasticCredentialsSecret), mapType);
username = val.get("username").toString(); username = val.get("username").toString();
password = val.get("password").toString(); password = val.get("password").toString();
//elastic expects username:password format //elastic expects username:password format
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment