package com.ruoyi;

import com.ruoyi.web.v2.server.EnvInputServer;
//import com.ruoyi.web.core.nfid.NFIDServer;
import org.mybatis.spring.annotation.MapperScan;
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 })
@MapperScan("com.ruoyi.web.v2.v1.mapper")
//@MapperScan("com.ruoyi.**.mapper")
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();

        applicationContext.getBean(EnvInputServer.class).run();
    }
}
