Commit 4d2b07c3 by Nepxion

优化类代码

parent 42f03fb3
......@@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import com.alibaba.nacos.api.config.ConfigService;
import com.alibaba.nacos.api.config.listener.Listener;
import com.alibaba.nacos.api.exception.NacosException;
import com.nepxion.discovery.plugin.configcenter.ConfigAdapter;
import com.nepxion.discovery.plugin.configcenter.extension.nacos.constant.NacosConstant;
import com.nepxion.discovery.plugin.framework.adapter.PluginAdapter;
......@@ -87,7 +88,7 @@ public class NacosConfigAdapter extends ConfigAdapter {
return null;
}
});
} catch (Exception e) {
} catch (NacosException e) {
LOG.error("Subscribe config failed", e);
}
}
......
......@@ -26,7 +26,7 @@ import com.nepxion.discovery.plugin.framework.context.PluginContextAware;
@Configuration
public class NacosConfigConfiguration {
@Autowired
protected PluginContextAware pluginContextAware;
private PluginContextAware pluginContextAware;
@Bean
public ConfigService configService() throws NacosException {
......
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