You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
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"); |
|
} |
|
}
|
|
|