package com.huiju.estateagents;

import com.huiju.estateagents.websocket.ChatServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class EstateagentsApplication {

	public static void main(String[] args) {
		SpringApplication springApplication = new SpringApplication(EstateagentsApplication.class);
		ConfigurableApplicationContext configurableApplicationContext = springApplication.run(args);
		ChatServer.setApplicationContext(configurableApplicationContext);
	}

}
