package com.hzya.frame;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/***
 * @Content:War启动类 继承SpringBootServletInitializer  初始化servlet 环境
 * @Author 👻👻👻👻👻👻👻👻 gjh
 * @Date  2022-11-29 14:27
 * @Param
 * @return
 **/
public class WarStartApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        //  指向Application 这个启动类
        return builder.sources(WebappApplication.class);
    }
}
