吉安感知网项目-后端
linwei
yesterday 89fd0b6ff97e90220376cec824eaf8eabb9d0a3e
drone-service/drone-gd/src/main/java/org/sxkj/gd/GdApplication.java
@@ -19,7 +19,12 @@
import org.mybatis.spring.annotation.MapperScan;
import org.springblade.core.cloud.client.BladeCloudApplication;
import org.springblade.core.launch.BladeApplication;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;
/**
 * 系统模块启动器
@@ -28,11 +33,19 @@
@BladeCloudApplication
@EnableFeignClients({"org.sxkj","org.springblade","com.dji.sample"})
@MapperScan({"org.springblade.**.mapper.**","org.sxkj.**.mapper.**"})
@EnableScheduling
@EnableAsync
public class GdApplication {
   public static void main(String[] args) {
      BladeApplication.run("drone-gd", GdApplication.class, args);
   }
   @Bean
   public RestTemplate restTemplate(RestTemplateBuilder builder) {
      // 可以根据需要添加更多配置
      return builder.build();
   }
}