All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bcos.channel.proxy.Main Maven / Gradle / Ivy

There is a newer version: 2.6.6
Show newest version
package org.bcos.channel.proxy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
static Logger logger = LoggerFactory.getLogger(Main.class);
	
	public static void main(String[] args) throws Exception {
		logger.debug("Init proxy server");

		ApplicationContext context = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");

		Server server = context.getBean(Server.class);
		
		System.out.println("3...");
		Thread.sleep(1000);
		System.out.println("2...");
		Thread.sleep(1000);
		System.out.println("1...");
		Thread.sleep(1000);

		System.out.println("Start proxy server");
		System.out.println("===================================================================");
		
		server.run();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy