|
|
|
|
package apelet.tenantadmin;
|
|
|
|
|
|
|
|
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.context.event.ApplicationReadyEvent;
|
|
|
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
|
|
import org.springframework.context.event.EventListener;
|
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 租户运营管理服务启动类。
|
|
|
|
|
*
|
|
|
|
|
* @author guifc
|
|
|
|
|
* @date 2023-08-04
|
|
|
|
|
*/
|
|
|
|
|
@ComponentScan("apelet")
|
|
|
|
|
@EnableDiscoveryClient
|
|
|
|
|
@EnableScheduling
|
|
|
|
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
|
|
|
|
@MapperScan("apelet.common.**.dao")
|
|
|
|
|
public class TenantAdminApplication {
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
SpringApplication.run(TenantAdminApplication.class, args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@EventListener(ApplicationReadyEvent.class)
|
|
|
|
|
public void onApplicationReady() {
|
|
|
|
|
System.out.println("\n==============================================");
|
|
|
|
|
System.out.println("============= 项目启动成功 SUCCESS ============");
|
|
|
|
|
System.out.println("==============================================\n");
|
|
|
|
|
}
|
|
|
|
|
}
|