2022-02-21 16:20:38 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
|
|
|
|
|
* No deletion without permission, or be held responsible to law.
|
|
|
|
|
|
*/
|
|
|
|
|
|
package com.jeesite.modules;
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* Application
|
|
|
|
|
|
* @author ThinkGem
|
|
|
|
|
|
* @version 2018-10-13
|
|
|
|
|
|
*/
|
|
|
|
|
|
@SpringBootApplication
|
2022-04-24 11:35:10 +08:00
|
|
|
|
public class ApiApplication extends SpringBootServletInitializer {
|
2022-02-21 16:20:38 +08:00
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
2022-04-24 11:35:10 +08:00
|
|
|
|
SpringApplication.run(ApiApplication.class, args);
|
2022-02-21 16:20:38 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
|
|
|
|
|
this.setRegisterErrorPageFilter(false); // 错误页面有容器来处理,而不是SpringBoot
|
2022-04-24 11:35:10 +08:00
|
|
|
|
return builder.sources(ApiApplication.class);
|
2022-02-21 16:20:38 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|