package com.lanyuanxiaoyao.service.api;

import com.lanyuanxiaoyao.service.configuration.SecurityConfig;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.retry.annotation.EnableRetry;

/**
 * 启动类
 *
 * @author ZhangJiacheng
 * @date 2022-07-05
 */
@EnableDiscoveryClient
@EnableConfigurationProperties
@EnableEncryptableProperties
@SpringBootApplication
@ComponentScan(
        basePackages = {
                "com.lanyuanxiaoyao.service",
        },
        excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {SecurityConfig.class})
)
@EnableRetry
public class ApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(ApiApplication.class, args);
    }
}
