java-- game backend - project development summary 12-- server - the server is started

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Turn on the server
 * EnableTransactionManagement open affairs
 *
 * @date :2019/1/24 10:08
 */
@EnableTransactionManagement
@SpringBootApplication
public  class the Start {
     public  static  void main (String [] args) {
         // do not take port start 
        new new SpringApplicationBuilder (the Start. class .web (WebApplicationType.NONE) .run (args));
    }
}
  1. Do not take the port to start

Guess you like

Origin www.cnblogs.com/plxz/p/11038393.html