bocloud.cmp/src/main/java/com/bocloud/cmp/Application.java

28 lines
1.0 KiB
Java
Raw Normal View History

2024-08-20 09:57:23 +00:00
package com.bocloud.cmp;
import com.gitee.starblues.loader.launcher.SpringBootstrap;
import com.gitee.starblues.loader.launcher.SpringMainBootstrap;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
@EnableRabbit
@EnableScheduling
@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(value = {"com.bocloud.cmp", "com.megatron.database", "com.megatron.framework", "com.megatron.common"})
public class Application implements SpringBootstrap {
public static void main(String[] args) {
SpringMainBootstrap.launch(Application.class, args);
}
@Override
public void run(String[] args) throws Exception {
SpringApplication.run(Application.class, args);
}
}