|
@@ -11,6 +11,7 @@ import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
|
|
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
+import org.springframework.context.annotation.FilterType;
|
|
|
import org.springframework.core.env.Environment;
|
|
|
|
|
|
import java.net.InetAddress;
|
|
@@ -25,7 +26,10 @@ import java.net.UnknownHostException;
|
|
|
@EnableCustomSwagger2
|
|
|
@EnableFeignClients(basePackages = {"com.usky"})
|
|
|
@MapperScan(value = "com.ruoyi.job.mapper")
|
|
|
-@ComponentScan(basePackages = {"com.usky","com.ruoyi"})
|
|
|
+@ComponentScan(basePackages = {"com.usky","com.ruoyi"},
|
|
|
+ excludeFilters = @ComponentScan.Filter(
|
|
|
+ type = FilterType.ASSIGNABLE_TYPE,
|
|
|
+ classes = com.ruoyi.common.core.utils.SpringUtils.class))
|
|
|
@SpringBootApplication
|
|
|
public class RuoYiJobApplication
|
|
|
{
|