*
L
2026-04-22 77e54aec65693683bc2b9ac50e08df6a06c53493
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
package com.zy;
 
import com.zy.common.utils.RandomValidateCodeUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
 
@EnableAsync
@EnableScheduling
@SpringBootApplication(excludeName = {
        "org.springdoc.webmvc.ui.SwaggerConfig",
        "org.springdoc.core.properties.SwaggerUiConfigProperties",
        "org.springdoc.core.properties.SwaggerUiConfigParameters",
        "org.springdoc.core.properties.SwaggerUiOAuthProperties",
        "org.springdoc.core.configuration.SpringDocUIConfiguration"
})
@MapperScan({"com.zy.asrs.mapper", "com.zy.system.mapper"})
public class Boot extends SpringBootServletInitializer {
 
    public static void main(String[] args) {
        RandomValidateCodeUtil.init();
        SpringApplication.run(Boot.class, args);
//        new Thread(()-> {
//            ServerBootstrap serverBootstrap = SpringUtils.getBean(ServerBootstrap.class);
//            serverBootstrap.init();
//        }).start();
 
    }
 
//    @Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//        return builder.sources(Boot.class);
//    }
 
}