懒羊羊
2023-10-17 5d91e0a52879bf16511817b3cd20496f07717ab1
提交 | 用户 | 时间
1ac2bc 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 }