|
@ -10,8 +10,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.data.mongodb.gridfs.GridFsOperations;
|
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
|
import org.zbus.mq.server.MqServer;
|
|
|
import org.zbus.mq.server.MqServerConfig;
|
|
|
|
|
|
@SpringBootApplication
|
|
|
public class ESBApplication extends WebMvcConfigurerAdapter implements CommandLineRunner {
|
|
@ -39,11 +37,11 @@ public class ESBApplication extends WebMvcConfigurerAdapter implements CommandL
|
|
|
|
|
|
@Override
|
|
|
public void run(String... strings) throws Exception {
|
|
|
MqServerConfig config = new MqServerConfig();
|
|
|
config.serverPort = configuration.getZbusPort();
|
|
|
config.storePath = configuration.getZbusStore();
|
|
|
final MqServer server = new MqServer(config);
|
|
|
server.start();
|
|
|
System.out.println("zbus 启动成功!");
|
|
|
// MqServerConfig config = new MqServerConfig();
|
|
|
// config.serverPort = configuration.getZbusPort();
|
|
|
// config.storePath = configuration.getZbusStore();
|
|
|
// final MqServer server = new MqServer(config);
|
|
|
// server.start();
|
|
|
// System.out.println("zbus 启动成功!");
|
|
|
}
|
|
|
}
|