Guwan-smartSchool/shapelight-admin/src/main/java/net/shapelight/AdminApplication.java

43 lines
1.3 KiB
Java
Raw Normal View History

2020-10-19 17:44:19 +08:00
/**/
package net.shapelight;
2021-03-15 16:45:58 +08:00
//import net.shapelight.modules.dev.mqtt.MqttClientUtil;
2020-10-19 17:44:19 +08:00
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
2021-02-25 09:33:01 +08:00
import org.springframework.boot.web.servlet.ServletComponentScan;
2020-10-19 17:44:19 +08:00
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
//@ImportResource(value = { "classpath:spring/spring.xml" })
@SpringBootApplication//(exclude = DataSourceAutoConfiguration.class)//排除DataSourceConfiguratrion
@EnableCaching
@EnableTransactionManagement
2021-02-25 09:33:01 +08:00
@ServletComponentScan
2020-10-19 17:44:19 +08:00
//@MapperScan("net.shapelight.modules.sys.dao")
public class AdminApplication {
public static void main(String[] args) {
SpringApplication.run(AdminApplication.class, args);
2021-03-15 16:45:58 +08:00
// //mqtt服务启动
// MqttClientUtil.createClient();
//
// Runtime.getRuntime().addShutdownHook(new Thread() {
// @Override
// public void run() {
// try {
// //释放工作
// //...
//
// } catch (Throwable e) {
// e.printStackTrace();
// }
// }
// });
2020-10-19 17:44:19 +08:00
}
}