package com.yssh;
|
|
import com.yssh.utils.ServletInitializer;
|
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
|
import java.net.UnknownHostException;
|
|
/**
|
* @author wMeng
|
* @ClassName Application
|
* @Description TODO
|
* @date 2022/10/30 13:00
|
* @Version 1.0
|
*/
|
@SpringBootApplication
|
@EnableSwagger2
|
@EnableScheduling
|
public class Application extends ServletInitializer {
|
|
|
public static void main(String[] args) throws UnknownHostException {
|
SpringApplication.run(Application.class, args);
|
System.out.println("\n--------------------【项目运行成功】---------------------------------\n\t");
|
/*String ip = InetAddress.getLocalHost().getHostAddress();
|
String port = "8083";
|
String path = "/";
|
if (StringUtils.isEmpty(path)) {
|
path = "";
|
}
|
System.out.println("\n----------------------------------------------------------\n\t" +
|
"(♥◠‿◠)ノ゙ 项目启动成功 ლ(´ڡ`ლ)゙ 服务端地址如下: \n\t" +
|
"Local: \t\thttp://localhost:" + port + path + "\n\t" +
|
"------------------------------------------------------\n\t" +
|
"NetWork: \thttp://" + ip + ":" + port + path + "\n\t" +
|
"\n----------------------------------------------------------\n\t");*/
|
|
}
|
}
|