懒羊羊
2024-01-11 be26d5065b4a07123638c220c0792e9250a458e6
提交 | 用户 | 时间
71e81e 1 /**
2  * Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
3  * <p>
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  * <p>
8  * http://www.apache.org/licenses/LICENSE-2.0
9  * <p>
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package cn.stylefeng.guns;
17
18 import org.springframework.boot.builder.SpringApplicationBuilder;
19 import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
20
21 /**
22  * Guns Web程序启动类
23  *
24  * @author fengshuonan
25  * @date 2017-05-21 9:43
26  */
27 public class GunsServletInitializer extends SpringBootServletInitializer {
28
29     @Override
30     protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
31         return builder.sources(GunsApplication.class);
32     }
33 }