GameOneConfig.java 737 B

12345678910111213141516171819202122
  1. package com.game.business.config;
  2. import com.game.business.util.Common;
  3. import com.game.business.websocket.WebSocketConnent;
  4. import org.springframework.boot.CommandLineRunner;
  5. import org.springframework.scheduling.annotation.Async;
  6. import org.springframework.scheduling.annotation.EnableAsync;
  7. import org.springframework.stereotype.Component;
  8. @Component
  9. @EnableAsync
  10. public class GameOneConfig implements CommandLineRunner {
  11. public static WebSocketConnent webSocketConnent;
  12. @Override
  13. @Async
  14. public void run(String... args) throws Exception {
  15. // webSocketConnent = new WebSocketConnent(Common.WS_GAME_ONE_URL, Common.WS_GAME_ONE_REMARK_URL, Common.GANME_ONE_NAME);
  16. // webSocketConnent.connect();
  17. }
  18. }