aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/ApiServer.java
blob: 3133b1af1c9ce45a903f477719b18398ef6dc124 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.juick.server;

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

@SpringBootApplication
public class ApiServer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        setRegisterErrorPageFilter(false);
        return builder.sources(ApiServer.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(ApiServer.class, args);
    }
}