xing
2023-02-23 c75e6f4696634d626c5569794c6349593853223a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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");*/
 
    }
}