|
@@ -0,0 +1,55 @@
|
|
|
|
+package com.fdkankan;
|
|
|
|
+
|
|
|
|
+import com.fdkankan.common.config.FileRouteConfig;
|
|
|
|
+import com.fdkankan.common.constant.RedisUtil;
|
|
|
|
+import com.fdkankan.common.exception.GlobalExceptionHandler;
|
|
|
|
+import com.fdkankan.common.util.UploadToOssUtil;
|
|
|
|
+import com.fdkankan.platform.api.feign.client.PlatformClient;
|
|
|
|
+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.Bean;
|
|
|
|
+import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
+
|
|
|
|
+@SpringBootApplication
|
|
|
|
+@EnableFeignClients
|
|
|
|
+@EnableDiscoveryClient
|
|
|
|
+@EnableScheduling
|
|
|
|
+@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();
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+}
|