package com.lanyuanxiaoyao.service.launcher;

import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration;
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.ComponentScans;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动类
 *
 * @author ZhangJiacheng
 * @date 2023-04-05
 */
@EnableDiscoveryClient
@SpringBootApplication(exclude = {GsonAutoConfiguration.class})
@ComponentScans({
        @ComponentScan("com.lanyuanxiaoyao.service"),
})
@EnableScheduling
@EnableConfigurationProperties
@EnableEncryptableProperties
public class LauncherRunnerApplication {
    private static final Logger logger = LoggerFactory.getLogger(LauncherRunnerApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(LauncherRunnerApplication.class, args);
    }
}
