App.java 1.29 KB
package com.viontech.integration.jiaoguansuo;

import lombok.extern.slf4j.Slf4j;
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.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * .
 *
 * @author 谢明辉
 * @date 2022/2/21
 */

@SpringBootApplication
@ComponentScan(basePackages = {"com.viontech.fanxing", "com.viontech.integration.jiaoguansuo"}, excludeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = com.viontech.fanxing.commons.config.RedissonConfig.class), @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = com.viontech.fanxing.commons.service.RedisService.class)})
@EnableFeignClients(basePackages = "com.viontech.integration.jiaoguansuo")
@EnableDiscoveryClient
@EnableScheduling
@Slf4j
public class App {
    public static void main(String[] args) {
        try {
            SpringApplication.run(App.class, args);
        } catch (Exception e) {
            log.error("ops app start error", e);
        }
    }

}