|
@ -17,6 +17,7 @@ import org.apache.http.impl.client.HttpClients;
|
|
import org.apache.http.message.BasicNameValuePair;
|
|
import org.apache.http.message.BasicNameValuePair;
|
|
import org.springframework.beans.factory.DisposableBean;
|
|
import org.springframework.beans.factory.DisposableBean;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.net.InetAddress;
|
|
import java.net.InetAddress;
|
|
@ -28,6 +29,7 @@ import java.util.List;
|
|
/**
|
|
/**
|
|
* @created Airhead 2016/8/1.
|
|
* @created Airhead 2016/8/1.
|
|
*/
|
|
*/
|
|
|
|
@Component("brokerServerService")
|
|
public class BrokerServerService implements DisposableBean {
|
|
public class BrokerServerService implements DisposableBean {
|
|
@Autowired
|
|
@Autowired
|
|
private ApplicationConfiguration applicationConfiguration;
|
|
private ApplicationConfiguration applicationConfiguration;
|