/*
 * 文 件 名:  ConfigServerApplication
 * 版    权:
 * 描    述:  <描述>
 * 修 改 人:  learshaw
 * 修改时间:  2018/12/18
 */
package com.huashe.park.collect;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.dtflys.forest.springboot.annotation.ForestScan;

/**
 * Mqtt启动入口 <功能详细描述>
 *
 * @author learshaw
 * @version [版本号, 2021/04/26]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@EnableScheduling
@SpringBootApplication(exclude = {
    DataSourceAutoConfiguration.class
})
@ComponentScan(basePackages = {
    "com.ruoyi", "com.huashe.park"
})
@MapperScan("com.huashe.park.core.mapper")
@ForestScan(basePackages = {
    "com.huashe.park.infrastructure.uwb", "com.huashe.park.infrastructure.mqtt"
})
@EnableAsync
public class SpingMqttApplication {
    public static void main(String[] args) {
        SpringApplicationBuilder builder = new SpringApplicationBuilder(SpingMqttApplication.class);
        // builder.web(WebApplicationType.NONE);
        builder.run(args);
    }
}