|
|
@ -3,6 +3,8 @@ package com.inspect.metadata; |
|
|
import com.inspect.common.security.annotation.EnableCustomConfig; |
|
|
import com.inspect.common.security.annotation.EnableCustomConfig; |
|
|
import com.inspect.common.security.annotation.EnableRyFeignClients; |
|
|
import com.inspect.common.security.annotation.EnableRyFeignClients; |
|
|
import com.inspect.base.swagger.annotation.EnableCustomSwagger2; |
|
|
import com.inspect.base.swagger.annotation.EnableCustomSwagger2; |
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
import org.springframework.beans.factory.config.BeanDefinition; |
|
|
import org.springframework.beans.factory.config.BeanDefinition; |
|
|
import org.springframework.beans.factory.support.BeanDefinitionRegistry; |
|
|
import org.springframework.beans.factory.support.BeanDefinitionRegistry; |
|
|
import org.springframework.beans.factory.support.BeanNameGenerator; |
|
|
import org.springframework.beans.factory.support.BeanNameGenerator; |
|
|
@ -22,6 +24,7 @@ import org.springframework.scheduling.annotation.EnableAsync; |
|
|
@ComponentScan({"com.inspect.*"}) |
|
|
@ComponentScan({"com.inspect.*"}) |
|
|
@EnableAsync |
|
|
@EnableAsync |
|
|
public class InspectMetadataApplication { |
|
|
public class InspectMetadataApplication { |
|
|
|
|
|
private final static Logger log = LoggerFactory.getLogger(InspectMetadataApplication.class); |
|
|
|
|
|
|
|
|
public static class CustomGenerator implements BeanNameGenerator { |
|
|
public static class CustomGenerator implements BeanNameGenerator { |
|
|
@Override |
|
|
@Override |
|
|
@ -35,6 +38,6 @@ public class InspectMetadataApplication { |
|
|
// SpringApplicationBuilder builder = new SpringApplicationBuilder(InspectMetadataApplication.class) |
|
|
// SpringApplicationBuilder builder = new SpringApplicationBuilder(InspectMetadataApplication.class) |
|
|
// .beanNameGenerator(new CustomGenerator()); |
|
|
// .beanNameGenerator(new CustomGenerator()); |
|
|
// builder.run(args); |
|
|
// builder.run(args); |
|
|
System.out.println("<===☆ METADATA MODULE ☆ ===> \n .-------. ____ __ \n | _ _ \\ \\ \\ / / \n | ( ' ) | \\ _. / ' \n |(_ o _) / _( )_ .' \n | (_,_).' __ ___(_ o _)' \n | |\\ \\ | || |(_,_)' \n | | \\ `' /| `-' / \n | | \\ / \\ / \n ''-' `'-' `-..-' "); |
|
|
|
|
|
|
|
|
log.info("\n<===☆ METADATA MODULE ☆ ===> \n .-------. ____ __ \n | _ _ \\ \\ \\ / / \n | ( ' ) | \\ _. / ' \n |(_ o _) / _( )_ .' \n | (_,_).' __ ___(_ o _)' \n | |\\ \\ | || |(_,_)' \n | | \\ `' /| `-' / \n | | \\ / \\ / \n ''-' `'-' `-..-' "); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |