package com.ruoyi;

import com.ruoyi.common.server.EnvInputServer;
import com.ruoyi.web.core.nfid.NFIDServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
    public static void main(String[] args) throws Exception
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        ApplicationContext applicationContext = SpringApplication.run(RuoYiApplication.class, args);
        applicationContext.getBean(NFIDServer.class).start();
        // EnvInputServer
        //applicationContext.getBean(EnvInputServer.class).run();
    }
}
