|
@@ -1,51 +0,0 @@
|
|
|
-package com.fdkankan.scene;
|
|
|
-
|
|
|
-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();
|
|
|
-// }
|
|
|
-
|
|
|
-}
|