|
|
|
@ -4,11 +4,9 @@ import org.mybatis.spring.annotation.MapperScan; |
|
|
|
import org.springframework.boot.SpringApplication; |
|
|
|
import org.springframework.boot.SpringApplication; |
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
|
|
|
import org.springframework.boot.context.event.ApplicationReadyEvent; |
|
|
|
|
|
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; |
|
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; |
|
|
|
import org.springframework.context.annotation.ComponentScan; |
|
|
|
import org.springframework.context.annotation.ComponentScan; |
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling; |
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling; |
|
|
|
import org.springframework.context.event.EventListener; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 租户运营管理服务启动类。 |
|
|
|
* 租户运营管理服务启动类。 |
|
|
|
@ -26,12 +24,4 @@ public class TenantAdminApplication { |
|
|
|
public static void main(String[] args) { |
|
|
|
public static void main(String[] args) { |
|
|
|
SpringApplication.run(TenantAdminApplication.class, args); |
|
|
|
SpringApplication.run(TenantAdminApplication.class, args); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@EventListener(ApplicationReadyEvent.class) |
|
|
|
|
|
|
|
public void onApplicationReady() { |
|
|
|
|
|
|
|
System.out.println("\n=============================================="); |
|
|
|
|
|
|
|
System.out.println("============= 项目启动成功 SUCCESS ============"); |
|
|
|
|
|
|
|
System.out.println("==============================================\n"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|