Commit 26ce3bfd by Nepxion

重构类结构

parent b6ef7f5b
......@@ -42,8 +42,6 @@ import com.nepxion.discovery.plugin.framework.exception.PluginException;
public class AdminEndpoint extends AbstractMvcEndpoint implements ApplicationContextAware {
private static final Logger LOG = LoggerFactory.getLogger(AdminEndpoint.class);
private static final String ENCODING_UTF_8 = "UTF-8";
private ConfigurableApplicationContext applicationContext;
@SuppressWarnings("rawtypes")
private ServiceRegistry serviceRegistry;
......@@ -77,7 +75,7 @@ public class AdminEndpoint extends AbstractMvcEndpoint implements ApplicationCon
}
try {
InputStream inputStream = IOUtils.toInputStream(config, ENCODING_UTF_8);
InputStream inputStream = IOUtils.toInputStream(config, PluginConstant.ENCODING_UTF_8);
pluginPublisher.publish(inputStream);
} catch (IOException e) {
throw new PluginException("To input stream failed", e);
......
......@@ -17,5 +17,6 @@ public class PluginConstant {
public static final String EUREKA_METADATA_VERSION = "eureka.instance.metadataMap.version";
public static final String VRESION = "version";
public static final String ENCODING_UTF_8 = "UTF-8";
public static final String SEPARATE = ",";
}
\ No newline at end of file
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