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;
|
2025-11-30 18:38:38 +08:00
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
2022-02-21 16:20:38 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Application
|
2025-11-29 23:40:29 +08:00
|
|
|
*
|
2022-02-21 16:20:38 +08:00
|
|
|
* @author ThinkGem
|
|
|
|
|
*/
|
2025-11-30 18:38:38 +08:00
|
|
|
@EnableScheduling // 开启定时任务
|
2022-02-21 16:20:38 +08:00
|
|
|
@SpringBootApplication
|
2022-04-24 11:35:10 +08:00
|
|
|
public class ApiApplication extends SpringBootServletInitializer {
|
2025-11-29 23:40:29 +08:00
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
SpringApplication.run(ApiApplication.class, args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
|
|
|
|
this.setRegisterErrorPageFilter(false);
|
|
|
|
|
return builder.sources(ApiApplication.class);
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-21 16:20:38 +08:00
|
|
|
}
|