浏览代码

场景中心 test

by su 3 年之前
父节点
当前提交
4f80ace1f1
共有 1 个文件被更改,包括 51 次插入0 次删除
  1. 51 0
      4dkankan-center-scene/src/main/java/com/fdkankan/SceneApplication.java

+ 51 - 0
4dkankan-center-scene/src/main/java/com/fdkankan/SceneApplication.java

@@ -0,0 +1,51 @@
+package com.fdkankan;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+import org.springframework.cloud.openfeign.EnableFeignClients;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.scheduling.annotation.EnableScheduling;
+
+@SpringBootApplication
+//@EnableFeignClients("com.fdkankan.*.api.feign")
+@EnableDiscoveryClient
+@EnableScheduling
+//@ComponentScan("*")
+@MapperScan("com.fdkankan.**.mapper")
+public class SceneApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(SceneApplication.class, args);
+    }
+
+    /**
+     * 注入全局异常处理器
+     */
+//    @Bean
+//    public GlobalExceptionHandler globalExceptionHandler(){
+//        return new GlobalExceptionHandler();
+//    }
+//
+//    @Bean
+//    public RedisUtil redisUtil(){
+//        return new RedisUtil();
+//    }
+//
+//    @Bean
+//    public FileRouteConfig fileRouteConfig(){
+//        return new FileRouteConfig();
+//    }
+//
+////    @Bean
+////    public PlatformClient platformClient(){
+////        return  new PlatformClient();
+////    }
+//
+//    @Bean
+//    public UploadToOssUtil uploadToOssUtil(){
+//        return new UploadToOssUtil();
+//    }
+
+}