| 123456789101112131415161718192021222324252627282930313233 |
- package cn.tr.test;
- import cn.dev33.satoken.strategy.SaStrategy;
- import cn.tr.module.sys.core.mq.message.sms.SmsChannelRefreshMessage;
- import cn.tr.module.sys.core.mq.message.sms.SmsTemplateRefreshMessage;
- import org.mybatis.spring.annotation.MapperScan;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- import org.springframework.cloud.bus.jackson.RemoteApplicationEventScan;
- import org.springframework.context.annotation.Bean;
- import org.springframework.scheduling.annotation.EnableAsync;
- /**
- * @ClassName : WebApplication
- * @Description :
- * @Author : LF
- * @Date: 2023年02月22日
- */
- @SpringBootApplication(scanBasePackages = "cn.tr.module.*")
- @MapperScan({"cn.tr.module.*.*.repository","cn.tr.module.*.modular.*.mapper"})
- @RemoteApplicationEventScan(basePackageClasses = {SmsChannelRefreshMessage.class, SmsTemplateRefreshMessage.class})
- @EnableAsync
- public class WebApplication {
- public static void main(String[] args) {
- SaStrategy.me.checkElementAnnotation=c->{};
- SpringApplication.run(WebApplication.class);
- }
- @Bean
- public QuartzTest quartzTest(){
- return new QuartzTest();
- }
- }
|