WebSocketApp.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package cn.com.qmth.examcloud.ws;
  2. import org.springframework.boot.SpringApplication;
  3. import org.springframework.boot.autoconfigure.SpringBootApplication;
  4. import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
  5. import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
  6. import org.springframework.context.annotation.ComponentScan;
  7. import org.springframework.context.annotation.Configuration;
  8. @Configuration
  9. @EnableDiscoveryClient
  10. @ComponentScan(basePackages = {"cn.com.qmth"})
  11. @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
  12. public class WebSocketApp {
  13. static {
  14. String runtimeLevel = System.getProperty("log.commonLevel");
  15. if (null == runtimeLevel) {
  16. System.setProperty("log.commonLevel", "INFO");
  17. }
  18. }
  19. /**
  20. * main
  21. *
  22. * @param args
  23. * @throws Exception
  24. * @author WANGWEI
  25. */
  26. public static void main(String[] args) throws Exception {
  27. // AppBootstrap.run(WebSocketApp.class, args);
  28. SpringApplication.run(WebSocketApp.class, args);
  29. }
  30. }